Package gov.nih.mipav.view.renderer.J3D
Class JPanelVolOpacity
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPanel
-
- gov.nih.mipav.view.renderer.JPanelRendererBase
-
- gov.nih.mipav.view.renderer.J3D.JPanelRendererJ3D
-
- gov.nih.mipav.view.renderer.J3D.JPanelVolOpacityBase
-
- gov.nih.mipav.view.renderer.J3D.JPanelVolOpacity
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.awt.event.FocusListener
,java.awt.event.ItemListener
,java.awt.event.KeyListener
,java.awt.event.MouseListener
,java.awt.image.ImageObserver
,java.awt.MenuContainer
,java.io.Serializable
,java.util.EventListener
,javax.accessibility.Accessible
,javax.swing.event.ChangeListener
public class JPanelVolOpacity extends JPanelVolOpacityBase
Deprecated.Simple panel containing the volume renderer opacity controls.- Version:
- 0.1 May, 2003
- See Also:
JPanelVolumeOpacity
, Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
-
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
-
-
Field Summary
Fields Modifier and Type Field Description private ModelHistogram
histogramA
Deprecated.Histogram reference for image A.private ModelHistogram
histogramB
Deprecated.Histogram reference for image B.private ModelHistogram
histogramGM_A
Deprecated.Histogram reference for imageA GM.private ModelHistogram
histogramGM_B
Deprecated.Histogram reference for imageB GM.private javax.swing.JProgressBar
rendererProgressBar
Deprecated.A reference to the volume renderer frame's progress bar.private static long
serialVersionUID
Deprecated.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_B
-
Fields inherited from class gov.nih.mipav.view.renderer.J3D.JPanelRendererJ3D
rayBasedRender, renderBase
-
Fields inherited from class gov.nih.mipav.view.renderer.JPanelRendererBase
applyButton, cancelButton, cancelFlag, closeButton, helpButton, isActiveImage, mainPanel, NEW, OKButton, REPLACE, runInSeparateThread, serif12, serif12B
-
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
-
Constructor Summary
Constructors Constructor Description JPanelVolOpacity(RenderViewBase theParentFrame, ModelImage _imgA, ModelImage _imgB)
Deprecated.JPanelVolOpacity(VolumeTriPlanarInterface theParentFrame, ModelImage _imgA, ModelImage _imgB)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent event)
Deprecated.Closes dialog box when the OK button is pressed and sets the variables.void
addGM()
Deprecated.Add the gradient magnitude histogram to the opacity control panel.private void
buildPanelA()
Deprecated.Method that displays the histogram and controls to manipulate the opacity.private void
buildPanelB()
Deprecated.Method that displays the histogram and controls to manipulate the opacity.private void
buildPanelGM_A()
Deprecated.Method that displays the histogram and controls to manipulate the opacity.private void
buildPanelGM_B()
Deprecated.Method that displays the histogram and controls to manipulate the opacity.private void
calcHistograms()
Deprecated.Calculates histogram for the imageA, B.private void
calcHistogramsGM()
Deprecated.Calculates histogram for the gradient magnitude imageA, B.void
disposeLocal()
Deprecated.Clear memory and garbage collection.protected void
finalize()
Deprecated.Calls dispose.ModelImage
getGradMagA()
Deprecated.Get the gradient magnitude imageA.ModelImage
getGradMagB()
Deprecated.Get the gradient magnitude imageB.private void
initialize()
Deprecated.Sets up the GUI (panels, buttons, etc) and displays it on the screen.void
itemStateChanged(java.awt.event.ItemEvent event)
Deprecated.Sets the flags for the checkboxes.void
removeGM()
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, updateSlider
-
Methods inherited from class gov.nih.mipav.view.renderer.J3D.JPanelRendererJ3D
getSurfaceRender, setRayBasedRender, setSurfaceRender
-
Methods 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, testParameter
-
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
-
Methods 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, update
-
Methods 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, validateTree
-
Methods 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, transferFocusUpCycle
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Deprecated.Use serialVersionUID for interoperability.- See Also:
- Constant Field Values
-
histogramA
private ModelHistogram histogramA
Deprecated.Histogram reference for image A.
-
histogramB
private ModelHistogram histogramB
Deprecated.Histogram reference for image B.
-
histogramGM_A
private ModelHistogram histogramGM_A
Deprecated.Histogram reference for imageA GM.
-
histogramGM_B
private ModelHistogram histogramGM_B
Deprecated.Histogram reference for imageB GM.
-
rendererProgressBar
private javax.swing.JProgressBar rendererProgressBar
Deprecated.A reference to the volume renderer frame's progress bar.
-
-
Constructor Detail
-
JPanelVolOpacity
public JPanelVolOpacity(RenderViewBase 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:
JPanelVolumeOpacity
-
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:
JPanelVolumeOpacity
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent event)
Deprecated.Closes dialog box when the OK button is pressed and sets the variables.- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
- Overrides:
actionPerformed
in 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:
addGM
in classJPanelVolOpacityBase
-
disposeLocal
public void disposeLocal()
Deprecated.Clear memory and garbage collection.- Overrides:
disposeLocal
in classJPanelVolOpacityBase
-
getGradMagA
public ModelImage getGradMagA()
Deprecated.Get the gradient magnitude imageA.- Overrides:
getGradMagA
in classJPanelVolOpacityBase
- Returns:
- ModelImage GM imageA
-
getGradMagB
public ModelImage getGradMagB()
Deprecated.Get the gradient magnitude imageB.- Overrides:
getGradMagB
in classJPanelVolOpacityBase
- Returns:
- ModelImage GM imageB
-
itemStateChanged
public void itemStateChanged(java.awt.event.ItemEvent event)
Deprecated.Sets the flags for the checkboxes.- Specified by:
itemStateChanged
in interfacejava.awt.event.ItemListener
- Overrides:
itemStateChanged
in 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:
removeGM
in classJPanelVolOpacityBase
-
finalize
protected void finalize() throws java.lang.Throwable
Deprecated.Calls dispose.- Overrides:
finalize
in classJPanelVolOpacityBase
- Throws:
java.lang.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.
-
-