Package gov.nih.mipav.view.renderer.J3D
Class JPanelVolOpacity
- All Implemented Interfaces:
ActionListener,FocusListener,ItemListener,KeyListener,MouseListener,ImageObserver,MenuContainer,Serializable,EventListener,Accessible,ChangeListener
Deprecated.
Simple panel containing the volume renderer opacity controls.
- Version:
- 0.1 May, 2003
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanelNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ModelHistogramDeprecated.Histogram reference for image A.private ModelHistogramDeprecated.Histogram reference for image B.private ModelHistogramDeprecated.Histogram reference for imageA GM.private ModelHistogramDeprecated.Histogram reference for imageB GM.private JProgressBarDeprecated.A reference to the volume renderer frame's progress bar.private static final longDeprecated.Use serialVersionUID for interoperability.Fields inherited from class gov.nih.mipav.view.renderer.J3D.JPanelVolOpacityBase
blendSlider, BLUE, COMP_A, COMP_B, COMP_GM_A, COMP_GM_B, componentOpacityA, componentOpacityB, componentOpacityGM_A, componentOpacityGM_B, GMCheckBox, gradMagRescale_A, gradMagRescale_B, GREEN, imageA, imageB, labelsTable, labelsTableB, labelsTableGM_A, labelsTableGM_B, m_kVolumeViewer, middleLabelValueA, middleLabelValueB, middleLabelValueGM_A, middleLabelValueGM_B, mouseSlider, mouseSliderB, mouseSliderGM_A, mouseSliderGM_B, OPACITY_COMPONENT_TAB_A, OPACITY_COMPONENT_TAB_A_GM, OPACITY_COMPONENT_TAB_B, OPACITY_COMPONENT_TAB_B_GM, opacitySliderLabelsA, opacitySliderLabelsB, opacitySliderLabelsGM_A, opacitySliderLabelsGM_B, panelOpacityA, panelOpacityB, panelOpacityGM_A, panelOpacityGM_B, rangeText, rangeTextB, rangeTextGM_A, rangeTextGM_B, RED, scaleRangeA, scaleRangeB, scaleRangeGM_A, scaleRangeGM_B, tabbedPane, xRangeTextA, xRangeTextB, xRangeTextGM_A, xRangeTextGM_B, yRangeTextA, yRangeTextB, yRangeTextGM_A, yRangeTextGM_BFields inherited from class gov.nih.mipav.view.renderer.J3D.JPanelRendererJ3D
rayBasedRender, renderBaseFields inherited from class gov.nih.mipav.view.renderer.JPanelRendererBase
applyButton, cancelButton, cancelFlag, closeButton, helpButton, isActiveImage, mainPanel, NEW, OKButton, REPLACE, runInSeparateThread, serif12, serif12BFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionJPanelVolOpacity(RenderViewBase theParentFrame, ModelImage _imgA, ModelImage _imgB) Deprecated.JPanelVolOpacity(VolumeTriPlanarInterface theParentFrame, ModelImage _imgA, ModelImage _imgB) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent event) Deprecated.Closes dialog box when the OK button is pressed and sets the variables.voidaddGM()Deprecated.Add the gradient magnitude histogram to the opacity control panel.private voidDeprecated.Method that displays the histogram and controls to manipulate the opacity.private voidDeprecated.Method that displays the histogram and controls to manipulate the opacity.private voidDeprecated.Method that displays the histogram and controls to manipulate the opacity.private voidDeprecated.Method that displays the histogram and controls to manipulate the opacity.private voidDeprecated.Calculates histogram for the imageA, B.private voidDeprecated.Calculates histogram for the gradient magnitude imageA, B.voidDeprecated.Clear memory and garbage collection.protected voidfinalize()Deprecated.Calls dispose.Deprecated.Get the gradient magnitude imageA.Deprecated.Get the gradient magnitude imageB.private voidDeprecated.Sets up the GUI (panels, buttons, etc) and displays it on the screen.voiditemStateChanged(ItemEvent event) Deprecated.Sets the flags for the checkboxes.voidremoveGM()Deprecated.Add the gradient magnitude hitogram to the opacity control panel.Methods inherited from class gov.nih.mipav.view.renderer.J3D.JPanelVolOpacityBase
buildBlendPanel, getAlphaBlendSliderValue, getCompA, getCompA_GM, getCompB, getCompB_GM, getImageA, getImageB, getLabelTableA, getLabelTableB, getLabelTableGM_A, getLabelTableGM_B, getMainPanel, getParentFrame, getSelectedComponent, getSelectedComponent, getSelectedTabIndex, getTabbedPane, initBlendSliderLabels, isGradientMagnitudeOpacityEnabled, loadGMImage, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, setAdjustersEnabled, setAlphaBlendSliderValue, setGradientMagnitudeOpacityEnabled, setSelectedTabIndex, stateChanged, update, updateSliderMethods inherited from class gov.nih.mipav.view.renderer.J3D.JPanelRendererJ3D
getSurfaceRender, setRayBasedRender, setSurfaceRenderMethods inherited from class gov.nih.mipav.view.renderer.JPanelRendererBase
buildApplyButton, buildCancelButton, buildCloseButton, buildHelpButton, buildOKButton, buildTitledBorder, focusGained, focusLost, isCancelled, keyPressed, keyReleased, keyTyped, makeString, resizePanel, setLeftHandSystem, setVisible, setVisibleStandard, setWCSystem, testParameterMethods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIMethods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, updateMethods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeMethods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.awt.event.FocusListener
focusGained, focusLostMethods inherited from interface java.awt.event.KeyListener
keyPressed, keyReleased, keyTyped
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDDeprecated.Use serialVersionUID for interoperability.- See Also:
-
histogramA
Deprecated.Histogram reference for image A. -
histogramB
Deprecated.Histogram reference for image B. -
histogramGM_A
Deprecated.Histogram reference for imageA GM. -
histogramGM_B
Deprecated.Histogram reference for imageB GM. -
rendererProgressBar
Deprecated.A reference to the volume renderer frame's progress bar.
-
-
Constructor Details
-
JPanelVolOpacity
Deprecated.Creates new dialog for converting type of image.- Parameters:
theParentFrame- Parent frame._imgA- Source imageA._imgB- Source imageB.- See Also:
-
JPanelVolOpacity
public JPanelVolOpacity(VolumeTriPlanarInterface theParentFrame, ModelImage _imgA, ModelImage _imgB) Deprecated.Creates new dialog for converting type of image.- Parameters:
theParentFrame- Parent frame._imgA- Source imageA._imgB- Source imageB.- See Also:
-
-
Method Details
-
actionPerformed
Deprecated.Closes dialog box when the OK button is pressed and sets the variables.- Specified by:
actionPerformedin interfaceActionListener- Overrides:
actionPerformedin classJPanelVolOpacityBase- Parameters:
event- Event that triggers this function
-
addGM
public void addGM()Deprecated.Add the gradient magnitude histogram to the opacity control panel.- Specified by:
addGMin classJPanelVolOpacityBase
-
disposeLocal
public void disposeLocal()Deprecated.Clear memory and garbage collection.- Overrides:
disposeLocalin classJPanelVolOpacityBase
-
getGradMagA
Deprecated.Get the gradient magnitude imageA.- Overrides:
getGradMagAin classJPanelVolOpacityBase- Returns:
- ModelImage GM imageA
-
getGradMagB
Deprecated.Get the gradient magnitude imageB.- Overrides:
getGradMagBin classJPanelVolOpacityBase- Returns:
- ModelImage GM imageB
-
itemStateChanged
Deprecated.Sets the flags for the checkboxes.- Specified by:
itemStateChangedin interfaceItemListener- Overrides:
itemStateChangedin classJPanelRendererBase- Parameters:
event- event that triggered this function
-
removeGM
public void removeGM()Deprecated.Add the gradient magnitude hitogram to the opacity control panel.- Specified by:
removeGMin classJPanelVolOpacityBase
-
finalize
Deprecated.Calls dispose.- Overrides:
finalizein classJPanelVolOpacityBase- Throws:
Throwable- DOCUMENT ME!
-
buildPanelA
private void buildPanelA()Deprecated.Method that displays the histogram and controls to manipulate the opacity. Panel for image A. -
buildPanelB
private void buildPanelB()Deprecated.Method that displays the histogram and controls to manipulate the opacity. Panel for image B. Reset the layout. -
buildPanelGM_A
private void buildPanelGM_A()Deprecated.Method that displays the histogram and controls to manipulate the opacity. Panel for image GM_A. -
buildPanelGM_B
private void buildPanelGM_B()Deprecated.Method that displays the histogram and controls to manipulate the opacity. Panel for image GM_B. -
calcHistograms
private void calcHistograms()Deprecated.Calculates histogram for the imageA, B. -
calcHistogramsGM
private void calcHistogramsGM()Deprecated.Calculates histogram for the gradient magnitude imageA, B. -
initialize
private void initialize()Deprecated.Sets up the GUI (panels, buttons, etc) and displays it on the screen. Change the layout of the volume opacity change diagram.
-