Package gov.nih.mipav.view.renderer
Class JPanelVolOpacityRGB
- 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.JPanelVolOpacityRGB
-
- 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 JPanelVolOpacityRGB extends JPanelVolOpacityBase
Deprecated.This class produces a frame where the histogram of the image data is displayed using the color mapping. All frames using the color map are dynamically updated with the new color map. This is the color image volume opacity control panel. In addition to the JPanelColorHisoRGB, the panel hold the gradient magnitude hisogram control panel.- Version:
- 1.0
- 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
histogramABlue
Deprecated.imageA histogram of the Blue channel.private ModelHistogram
histogramAGreen
Deprecated.imageA histogram of the Green channel.private ModelHistogram
histogramARed
Deprecated.imageA histogram of the Red channel.private ModelHistogram
histogramBBlue
Deprecated.imageB histogram, the Blue channel.private ModelHistogram
histogramBGreen
Deprecated.imageB histogram, the Green channel.private ModelHistogram
histogramBRed
Deprecated.imageB histogram of the Red channel.private ModelHistogram
histogramGM_ABlue
Deprecated.imageA histogram of the Blue channel.private ModelHistogram
histogramGM_AGreen
Deprecated.imageA histogram of the Green channel.private ModelHistogram
histogramGM_ARed
Deprecated.imageA histogram of the Red channel.private ModelHistogram
histogramGM_BBlue
Deprecated.imageB histogram, the Blue channel.private ModelHistogram
histogramGM_BGreen
Deprecated.imageB histogram, the Green channel.private ModelHistogram
histogramGM_BRed
Deprecated.imageB histogram of the Red channel.private javax.swing.JProgressBar
rendererProgressBar
Deprecated.A reference to the volume renderer frame's progress bar.private ModelRGB
RGBTA
Deprecated.Tagged for deletion - Matt, Ruida, Lee, ModelRGB table for imageA, B.private ModelRGB
RGBTA_GM
Deprecated.Tagged for deletion - Matt, Ruida, Lee, RGB table reference of the image A, B.private ModelRGB
RGBTB
Deprecated.DOCUMENT ME!private ModelRGB
RGBTB_GM
Deprecated.DOCUMENT ME!private static long
serialVersionUID
Deprecated.Use serialVersionUID for interoperability.private javax.swing.JToolBar
toolBar
Deprecated.ToolBar that hold the linear, horizontal mode etc.-
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 JPanelVolOpacityRGB(RenderViewBase theParentFrame, ModelImage _imageA, ModelImage _imageB)
Deprecated.JPanelVolOpacityRGB(VolumeTriPlanarInterface theParentFrame, ModelImage _imageA, ModelImage _imageB)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent event)
Deprecated.Calls various methods depending on the action.void
addGM()
Deprecated.Add the gradient magnitude hitogram to the opacity control panel.private void
buildPanelA()
Deprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT.private void
buildPanelB()
Deprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT.private void
buildPanelGM_A()
Deprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT.private void
buildPanelGM_B()
Deprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT.javax.swing.JToolBar
buildRGBToolBar(java.awt.event.ActionListener al)
Deprecated.Method to build the toolbar for the RGB frame.private ModelHistogram
calcHistogram(ModelImage image, int channel)
Deprecated.Calculates histogram for the image(s).private void
calcHistogramGM()
Deprecated.Calculates the histogram for the color images GM.void
disposeLocal()
Deprecated.Disposes of components and frame.void
finalize()
Deprecated.Calls dispose.ModelImage
getGradMagA()
Deprecated.Get the gradient magnitude imageA.ModelImage
getGradMagB()
Deprecated.Get the gradient magnitude imageA.TransferFunction
getOpacityAfn(int channel)
Deprecated.Returns the opacity transfer function for image A.TransferFunction
getOpacityBfn(int channel)
Deprecated.Returns the opacity transfer function for image B.TransferFunction
getOpacityGM_Afn(int channel)
Deprecated.Returns the opacity transfer function for image A.TransferFunction
getOpacityGM_Bfn(int channel)
Deprecated.Returns the opacity transfer function for image B.ModelRGB
getRGB_OpacityA()
Deprecated.Returns the opacity transfer function via the ModelRGB object for image B.ModelRGB
getRGB_OpacityA_GM()
Deprecated.Returns the opacity transfer function for the gradient magnitude image via the ModelRGB object for image A.ModelRGB
getRGB_OpacityB()
Deprecated.Returns the opacity transfer function via the ModelRGB object for image B.ModelRGB
getRGB_OpacityB_GM()
Deprecated.Returns the opacity transfer function for the gradient magnitude image via the ModelRGB object for image B.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
-
histogramABlue
private ModelHistogram histogramABlue
Deprecated.imageA histogram of the Blue channel.
-
histogramAGreen
private ModelHistogram histogramAGreen
Deprecated.imageA histogram of the Green channel.
-
histogramARed
private ModelHistogram histogramARed
Deprecated.imageA histogram of the Red channel.
-
histogramBBlue
private ModelHistogram histogramBBlue
Deprecated.imageB histogram, the Blue channel.
-
histogramBGreen
private ModelHistogram histogramBGreen
Deprecated.imageB histogram, the Green channel.
-
histogramBRed
private ModelHistogram histogramBRed
Deprecated.imageB histogram of the Red channel.
-
histogramGM_ABlue
private ModelHistogram histogramGM_ABlue
Deprecated.imageA histogram of the Blue channel.
-
histogramGM_AGreen
private ModelHistogram histogramGM_AGreen
Deprecated.imageA histogram of the Green channel.
-
histogramGM_ARed
private ModelHistogram histogramGM_ARed
Deprecated.imageA histogram of the Red channel.
-
histogramGM_BBlue
private ModelHistogram histogramGM_BBlue
Deprecated.imageB histogram, the Blue channel.
-
histogramGM_BGreen
private ModelHistogram histogramGM_BGreen
Deprecated.imageB histogram, the Green channel.
-
histogramGM_BRed
private ModelHistogram histogramGM_BRed
Deprecated.imageB histogram of the Red channel.
-
rendererProgressBar
private javax.swing.JProgressBar rendererProgressBar
Deprecated.A reference to the volume renderer frame's progress bar.
-
RGBTA
private ModelRGB RGBTA
Deprecated.Tagged for deletion - Matt, Ruida, Lee, ModelRGB table for imageA, B.
-
RGBTA_GM
private ModelRGB RGBTA_GM
Deprecated.Tagged for deletion - Matt, Ruida, Lee, RGB table reference of the image A, B.
-
RGBTB
private ModelRGB RGBTB
Deprecated.DOCUMENT ME!
-
RGBTB_GM
private ModelRGB RGBTB_GM
Deprecated.DOCUMENT ME!
-
toolBar
private javax.swing.JToolBar toolBar
Deprecated.ToolBar that hold the linear, horizontal mode etc.
-
-
Constructor Detail
-
JPanelVolOpacityRGB
public JPanelVolOpacityRGB(RenderViewBase theParentFrame, ModelImage _imageA, ModelImage _imageB)
Deprecated.Makes a frame of the histogram.- Parameters:
theParentFrame
- Model RGB_imageA
- Model of imageA_imageB
- Model of imageB- See Also:
JPanelVolumeOpacity
-
JPanelVolOpacityRGB
public JPanelVolOpacityRGB(VolumeTriPlanarInterface theParentFrame, ModelImage _imageA, ModelImage _imageB)
Deprecated.Makes a frame of the histogram.- Parameters:
theParentFrame
- Model RGB_imageA
- Model of imageA_imageB
- Model of imageB- See Also:
JPanelVolumeOpacity
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent event)
Deprecated.Calls various methods depending on the action.- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
- Overrides:
actionPerformed
in classJPanelVolOpacityBase
- Parameters:
event
- event that triggered function
-
addGM
public void addGM()
Deprecated.Add the gradient magnitude hitogram to the opacity control panel.- Specified by:
addGM
in classJPanelVolOpacityBase
-
buildRGBToolBar
public javax.swing.JToolBar buildRGBToolBar(java.awt.event.ActionListener al)
Deprecated.Method to build the toolbar for the RGB frame.- Parameters:
al
- action listener (this frame)- Returns:
- DOCUMENT ME!
-
disposeLocal
public void disposeLocal()
Deprecated.Disposes of components and frame.- Overrides:
disposeLocal
in classJPanelVolOpacityBase
-
finalize
public void finalize() throws java.lang.Throwable
Deprecated.Calls dispose.- Overrides:
finalize
in classJPanelVolOpacityBase
- Throws:
java.lang.Throwable
- DOCUMENT ME!
-
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 imageA.- Overrides:
getGradMagB
in classJPanelVolOpacityBase
- Returns:
- ModelImage GM imageA
-
getOpacityAfn
public TransferFunction getOpacityAfn(int channel)
Deprecated.Returns the opacity transfer function for image A.- Parameters:
channel
- DOCUMENT ME!- Returns:
- TransferFunction
-
getOpacityBfn
public TransferFunction getOpacityBfn(int channel)
Deprecated.Returns the opacity transfer function for image B.- Parameters:
channel
- DOCUMENT ME!- Returns:
- TransferFunction
-
getOpacityGM_Afn
public TransferFunction getOpacityGM_Afn(int channel)
Deprecated.Returns the opacity transfer function for image A.- Parameters:
channel
- DOCUMENT ME!- Returns:
- TransferFunction
-
getOpacityGM_Bfn
public TransferFunction getOpacityGM_Bfn(int channel)
Deprecated.Returns the opacity transfer function for image B.- Parameters:
channel
- DOCUMENT ME!- Returns:
- TransferFunction
-
getRGB_OpacityA
public ModelRGB getRGB_OpacityA()
Deprecated.Returns the opacity transfer function via the ModelRGB object for image B.- Returns:
- ModelRGB
-
getRGB_OpacityA_GM
public ModelRGB getRGB_OpacityA_GM()
Deprecated.Returns the opacity transfer function for the gradient magnitude image via the ModelRGB object for image A.- Returns:
- ModelRGB
-
getRGB_OpacityB
public ModelRGB getRGB_OpacityB()
Deprecated.Returns the opacity transfer function via the ModelRGB object for image B.- Returns:
- ModelRGB
-
getRGB_OpacityB_GM
public ModelRGB getRGB_OpacityB_GM()
Deprecated.Returns the opacity transfer function for the gradient magnitude image via the ModelRGB object for image B.- Returns:
- ModelRGB
-
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
-
buildPanelA
private void buildPanelA()
Deprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT. Panel for image A.
-
buildPanelB
private void buildPanelB()
Deprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT. Panel for image B.
-
buildPanelGM_A
private void buildPanelGM_A()
Deprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT. Panel for image A.
-
buildPanelGM_B
private void buildPanelGM_B()
Deprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT. Panel for image B.
-
calcHistogram
private ModelHistogram calcHistogram(ModelImage image, int channel)
Deprecated.Calculates histogram for the image(s).- Parameters:
image
- DOCUMENT ME!channel
- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
calcHistogramGM
private void calcHistogramGM()
Deprecated.Calculates the histogram for the color images GM.
-
-