Package gov.nih.mipav.view
Class ViewJPanelLUT
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPanel
-
- gov.nih.mipav.view.ViewJPanelLUT
-
- All Implemented Interfaces:
HistoLUTParent,java.awt.event.ActionListener,java.awt.event.ItemListener,java.awt.event.KeyListener,java.awt.image.ImageObserver,java.awt.MenuContainer,java.io.Serializable,java.util.EventListener,javax.accessibility.Accessible,javax.swing.event.ChangeListener
public class ViewJPanelLUT extends javax.swing.JPanel implements java.awt.event.ItemListener, java.awt.event.ActionListener, javax.swing.event.ChangeListener, java.awt.event.KeyListener, HistoLUTParent
Deprecated.Panel which contains the LUT / HistoLUT components and related GUI components.- Version:
- 1.0
- Author:
- Evan McCreedy
- See Also:
JFrameHistogram, 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 JDialogCTctDialogADeprecated.DOCUMENT ME!private JDialogCTctDialogBDeprecated.DOCUMENT ME!private intcursorIndexDeprecated.Active mouse cursor index of the imageA, B and GM image A, B.private intcursorIndexBDeprecated.Active mouse cursor index of the imageA, B and GM image A, B.static java.lang.StringcustomLUTsLocationDeprecated.private booleanentireFlagDeprecated.DOCUMENT ME!private ModelHistogramhistogramADeprecated.DOCUMENT ME!private ModelHistogramhistogramBDeprecated.DOCUMENT ME!private ViewJPanelHistoLUThistoPanelADeprecated.DOCUMENT ME!private ViewJPanelHistoLUThistoPanelBDeprecated.DOCUMENT ME!private javax.swing.JTextFieldindexColorATextFDeprecated.DOCUMENT ME!private javax.swing.JTextFieldindexColorBTextFDeprecated.DOCUMENT ME!private javax.swing.JCheckBoxinterpCheckBoxADeprecated.DOCUMENT ME!private javax.swing.JCheckBoxinterpCheckBoxBDeprecated.DOCUMENT ME!private java.util.Hashtable<java.lang.Integer,javax.swing.JLabel>labelsTableDeprecated.Histogram dialog slider labels of the imageA, B and GM imageA, B.private java.util.Hashtable<java.lang.Integer,javax.swing.JLabel>labelsTableBDeprecated.Histogram dialog slider labels of the imageA, B and GM imageA, B.private javax.swing.JCheckBoxlogCheckBoxADeprecated.DOCUMENT ME!private javax.swing.JCheckBoxlogCheckBoxBDeprecated.DOCUMENT ME!private javax.swing.JLabelmouseLabelDeprecated.The opacity slider label.private javax.swing.JLabelmouseLabelBDeprecated.The opacity slider label.private javax.swing.JSlidermouseSliderDeprecated.Opacity X scale sliders.private javax.swing.JSlidermouseSliderBDeprecated.Opacity X scale sliders.private javax.swing.JLabel[]mouseSliderLabelsDeprecated.The labels below the opacity slider.private javax.swing.JLabel[]mouseSliderLabelsBDeprecated.The labels below the opacity slider.private javax.swing.JTextFieldnColorsATextFDeprecated.DOCUMENT ME!private javax.swing.JTextFieldnColorsBTextFDeprecated.DOCUMENT ME!private javax.swing.JCheckBoxoneBasedLUTCheckBoxImageBDeprecated.DOCUMENT ME!private javax.swing.JComboBoxoutputBoxDeprecated.DOCUMENT ME!private javax.swing.JComboBoxoutputBoxBDeprecated.DOCUMENT ME!private javax.swing.JPanelpanelADeprecated.DOCUMENT ME!private javax.swing.JPanelpanelBDeprecated.DOCUMENT ME!private ViewJFrameHistoLUTpanelParentDeprecated.DOCUMENT ME!private javax.swing.JTextFieldrangeTextDeprecated.X range text field in the imageA, B histogram dialog.private javax.swing.JTextFieldrangeTextBDeprecated.X range text field in the imageA, B histogram dialog.private floatrangeXDeprecated.X range value of the imageA, B and GM imageA, B.private floatrangeXBDeprecated.X range value of the imageA, B and GM imageA, B.private intscaleRangeADeprecated.Scale range value according to the image min and max.private intscaleRangeBDeprecated.Scale range value according to the image min and max.private static longserialVersionUIDDeprecated.Use serialVersionUID for interoperability.private javax.swing.JTabbedPanetabbedPaneDeprecated.DOCUMENT ME!private javax.swing.JTextFieldthreshFillBFDeprecated.DOCUMENT ME!private javax.swing.JTextFieldthreshFillFDeprecated.threshold related.private javax.swing.JTextFieldthreshLowerBFDeprecated.DOCUMENT ME!private javax.swing.JTextFieldthreshLowerFDeprecated.threshold related.private javax.swing.JTextFieldthreshUpperBFDeprecated.DOCUMENT ME!private javax.swing.JTextFieldthreshUpperFDeprecated.threshold related.private javax.swing.JToolBartoolBarBottomDeprecated.DOCUMENT ME!private javax.swing.JToolBartoolBarCenterDeprecated.center toolbarprivate ViewToolBarBuildertoolBarObjDeprecated.DOCUMENT ME!private javax.swing.JToolBartoolBarThresholdDeprecated.DOCUMENT ME!private javax.swing.JToolBartoolBarTopDeprecated.DOCUMENT ME!private javax.swing.JCheckBoxupdateCheckBoxADeprecated.DOCUMENT ME!private javax.swing.JCheckBoxupdateCheckBoxBDeprecated.DOCUMENT ME!private javax.swing.JLabelvoxelVolumeLabelDeprecated.Used to display the volume or area of the voxels/pixels between the upper and lower bounds.private javax.swing.JTextFieldxRangeTextADeprecated.X range text field in the imageA, B and GM image A, B histogram dialog.private javax.swing.JTextFieldxRangeTextBDeprecated.X range text field in the imageA, B and GM image A, B histogram dialog.private javax.swing.JTextFieldyRangeTextADeprecated.Y range text field in the imageA, B and GM image A, B histogram dialog.private javax.swing.JTextFieldyRangeTextBDeprecated.Y range text field in the imageA, B and GM image A, B histogram dialog.-
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 ViewJPanelLUT(ViewJFrameHistoLUT parent)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent event)Deprecated.Calls various methods depending on the action.static javax.swing.JToolBarbuildLUTSelectionList(java.awt.event.ActionListener listener)Deprecated.private voidbuildPanelA(ModelImage image, ModelLUT LUT, boolean entireFlag)Deprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT.private voidbuildPanelB(ModelImage image, ModelLUT LUT, boolean entireFlag)Deprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT.private voidcalcHistogram(int imageAorB, boolean entireFlag, boolean progressFlag)Deprecated.Calculates histogram for the image(s).private voidcalcThreshold()Deprecated.Calculates the thresholded image based on the parameters of the threshold transfer function.private voidcalculateThreshold()Deprecated.Calculates the volume (for 3D images) or area (for 2D images) of the image between the two values from the upper and lower bounds text areas.private voidcalculateThreshold(float lower, float upper)Deprecated.Calculates the volume or area of the image between the two values from the upper and lower bounds (inclusive).private voidcalculateThresholdArea(float lower, float upper)Deprecated.Calculates the area of the image between the two values from the upper and lower bounds (inclusive).private voidcalculateThresholdVolume(float lower, float upper)Deprecated.Calculates the volume of the image between the two values from the upper and lower bounds (inclusive).voidclearVoxelLabel()Deprecated.DOCUMENT ME!voiddispose()Deprecated.Disposes of components and frame.voiddragPoint(java.awt.event.MouseEvent mouseEvent)Deprecated.Placeholder.private static java.util.Vector<java.lang.String>getCustomLUTList()Deprecated.ViewJComponentHLUTBasegetHistoLUTComponentA()Deprecated.Get the histogram component for imageA.ViewJComponentHLUTBasegetHistoLUTComponentB()Deprecated.Get the histogram component for imageB.floatgetLowerThreshold()Deprecated.Returns the lower threshold value.ModelLUTgetLUTa()Deprecated.Get the imageA histo component lut.ModelLUTgetLUTb()Deprecated.Get the imageB histo component lut.ViewJComponentLUTgetLUTComponentA()Deprecated.Get the imageA LUT.ViewJComponentLUTgetLUTComponentB()Deprecated.Get the imageB LUT.JDialogRecordLUTgetLUTRecorder()Deprecated.Get the LUT recorder reference.floatgetUpperThreshold()Deprecated.Returns the upper threshold value.voidinitGUI()Deprecated.Set up the panel components.booleanisImageASelected()Deprecated.Returns whether the imageA LUT panel is the one being worked on.booleanisImageBSelected()Deprecated.Returns whether the imageB LUT panel is the one being worked on.booleanisImageUpdate()Deprecated.Indicates if real-time update of the image should take place.private booleanisLUT1Based(ModelLUT LUT)Deprecated.end HistoLUTParent.voiditemStateChanged(java.awt.event.ItemEvent event)Deprecated.Sets the flags for the checkboxes.voidkeyPressed(java.awt.event.KeyEvent e)Deprecated.Unchanged.voidkeyReleased(java.awt.event.KeyEvent e)Deprecated.Unchanged.voidkeyTyped(java.awt.event.KeyEvent e)Deprecated.If the ENTER key is hit while in threshold boxes, update the LUT's threshold (for dual threshold).static java.io.BufferedReaderopenLUTFile(java.lang.String lutName)Deprecated.voidremoveHistoLUTb()Deprecated.Removes the tabbed pane for the histogram of image B.voidsetAllOff()Deprecated.Placeholder.voidsetLUT(ModelLUT newLUT)Deprecated.Replaces the LUT and builds a new LUT component.voidsetLUTa(ModelLUT lut)Deprecated.Change the histogram component LUT.voidsetLUTb(ModelLUT lut)Deprecated.Change the histogram component LUT.voidsetNColors(int value)Deprecated.Change the text field showing the number of colors.voidsetRangeText(float x, float y, int _index)Deprecated.Set the range value of the text field.voidstateChanged(javax.swing.event.ChangeEvent e)Deprecated.Sets values based on knob along slider.voidupdateComponentLUT()Deprecated.Placeholder.voidupdateFrames(boolean flag)Deprecated.Update all of the image frames that display the image this histo lut is for.voidupdateHistoLUT(ModelImage _imageA, ModelLUT _LUTa, ModelImage _imageB, ModelLUT _LUTb, boolean progressFlag)Deprecated.This method is called to update the histogram(s) displayed in each tabbed pane of the frame.voidupdateLUTPositionString(java.lang.String str)Deprecated.Placeholder.voidupdateThresholdFields(float lower, float upper)Deprecated.Method to update the threshold text fields when the lower or upper threshold changes.-
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, setVisible, 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
-
ctDialogA
private JDialogCT ctDialogA
Deprecated.DOCUMENT ME!
-
ctDialogB
private JDialogCT ctDialogB
Deprecated.DOCUMENT ME!
-
cursorIndex
private int cursorIndex
Deprecated.Active mouse cursor index of the imageA, B and GM image A, B.
-
cursorIndexB
private int cursorIndexB
Deprecated.Active mouse cursor index of the imageA, B and GM image A, B.
-
entireFlag
private boolean entireFlag
Deprecated.DOCUMENT ME!
-
histogramA
private ModelHistogram histogramA
Deprecated.DOCUMENT ME!
-
histogramB
private ModelHistogram histogramB
Deprecated.DOCUMENT ME!
-
histoPanelA
private ViewJPanelHistoLUT histoPanelA
Deprecated.DOCUMENT ME!
-
histoPanelB
private ViewJPanelHistoLUT histoPanelB
Deprecated.DOCUMENT ME!
-
indexColorATextF
private javax.swing.JTextField indexColorATextF
Deprecated.DOCUMENT ME!
-
indexColorBTextF
private javax.swing.JTextField indexColorBTextF
Deprecated.DOCUMENT ME!
-
interpCheckBoxA
private javax.swing.JCheckBox interpCheckBoxA
Deprecated.DOCUMENT ME!
-
interpCheckBoxB
private javax.swing.JCheckBox interpCheckBoxB
Deprecated.DOCUMENT ME!
-
labelsTable
private java.util.Hashtable<java.lang.Integer,javax.swing.JLabel> labelsTable
Deprecated.Histogram dialog slider labels of the imageA, B and GM imageA, B.
-
labelsTableB
private java.util.Hashtable<java.lang.Integer,javax.swing.JLabel> labelsTableB
Deprecated.Histogram dialog slider labels of the imageA, B and GM imageA, B.
-
logCheckBoxA
private javax.swing.JCheckBox logCheckBoxA
Deprecated.DOCUMENT ME!
-
logCheckBoxB
private javax.swing.JCheckBox logCheckBoxB
Deprecated.DOCUMENT ME!
-
mouseLabel
private javax.swing.JLabel mouseLabel
Deprecated.The opacity slider label.
-
mouseLabelB
private javax.swing.JLabel mouseLabelB
Deprecated.The opacity slider label.
-
mouseSlider
private javax.swing.JSlider mouseSlider
Deprecated.Opacity X scale sliders.
-
mouseSliderB
private javax.swing.JSlider mouseSliderB
Deprecated.Opacity X scale sliders.
-
mouseSliderLabels
private javax.swing.JLabel[] mouseSliderLabels
Deprecated.The labels below the opacity slider.
-
mouseSliderLabelsB
private javax.swing.JLabel[] mouseSliderLabelsB
Deprecated.The labels below the opacity slider.
-
nColorsATextF
private javax.swing.JTextField nColorsATextF
Deprecated.DOCUMENT ME!
-
nColorsBTextF
private javax.swing.JTextField nColorsBTextF
Deprecated.DOCUMENT ME!
-
oneBasedLUTCheckBoxImageB
private javax.swing.JCheckBox oneBasedLUTCheckBoxImageB
Deprecated.DOCUMENT ME!
-
outputBox
private javax.swing.JComboBox outputBox
Deprecated.DOCUMENT ME!
-
outputBoxB
private javax.swing.JComboBox outputBoxB
Deprecated.DOCUMENT ME!
-
panelA
private javax.swing.JPanel panelA
Deprecated.DOCUMENT ME!
-
panelB
private javax.swing.JPanel panelB
Deprecated.DOCUMENT ME!
-
panelParent
private ViewJFrameHistoLUT panelParent
Deprecated.DOCUMENT ME!
-
rangeText
private javax.swing.JTextField rangeText
Deprecated.X range text field in the imageA, B histogram dialog.
-
rangeTextB
private javax.swing.JTextField rangeTextB
Deprecated.X range text field in the imageA, B histogram dialog.
-
rangeX
private float rangeX
Deprecated.X range value of the imageA, B and GM imageA, B.
-
rangeXB
private float rangeXB
Deprecated.X range value of the imageA, B and GM imageA, B.
-
scaleRangeA
private int scaleRangeA
Deprecated.Scale range value according to the image min and max.
-
scaleRangeB
private int scaleRangeB
Deprecated.Scale range value according to the image min and max.
-
tabbedPane
private javax.swing.JTabbedPane tabbedPane
Deprecated.DOCUMENT ME!
-
threshLowerBF
private javax.swing.JTextField threshLowerBF
Deprecated.DOCUMENT ME!
-
threshUpperBF
private javax.swing.JTextField threshUpperBF
Deprecated.DOCUMENT ME!
-
threshFillBF
private javax.swing.JTextField threshFillBF
Deprecated.DOCUMENT ME!
-
threshLowerF
private javax.swing.JTextField threshLowerF
Deprecated.threshold related.
-
threshUpperF
private javax.swing.JTextField threshUpperF
Deprecated.threshold related.
-
threshFillF
private javax.swing.JTextField threshFillF
Deprecated.threshold related.
-
toolBarBottom
private javax.swing.JToolBar toolBarBottom
Deprecated.DOCUMENT ME!
-
toolBarCenter
private javax.swing.JToolBar toolBarCenter
Deprecated.center toolbar
-
toolBarObj
private ViewToolBarBuilder toolBarObj
Deprecated.DOCUMENT ME!
-
toolBarThreshold
private javax.swing.JToolBar toolBarThreshold
Deprecated.DOCUMENT ME!
-
toolBarTop
private javax.swing.JToolBar toolBarTop
Deprecated.DOCUMENT ME!
-
updateCheckBoxA
private javax.swing.JCheckBox updateCheckBoxA
Deprecated.DOCUMENT ME!
-
updateCheckBoxB
private javax.swing.JCheckBox updateCheckBoxB
Deprecated.DOCUMENT ME!
-
voxelVolumeLabel
private javax.swing.JLabel voxelVolumeLabel
Deprecated.Used to display the volume or area of the voxels/pixels between the upper and lower bounds.
-
xRangeTextA
private javax.swing.JTextField xRangeTextA
Deprecated.X range text field in the imageA, B and GM image A, B histogram dialog. Following text fields are used by the tri-planar volume view.
-
xRangeTextB
private javax.swing.JTextField xRangeTextB
Deprecated.X range text field in the imageA, B and GM image A, B histogram dialog. Following text fields are used by the tri-planar volume view.
-
yRangeTextA
private javax.swing.JTextField yRangeTextA
Deprecated.Y range text field in the imageA, B and GM image A, B histogram dialog. Following text fields are used by the tri-planar volume view.
-
yRangeTextB
private javax.swing.JTextField yRangeTextB
Deprecated.Y range text field in the imageA, B and GM image A, B histogram dialog. Following text fields are used by the tri-planar volume view.
-
customLUTsLocation
public static final java.lang.String customLUTsLocation
Deprecated.The location of custom LUT definitions, mostly used for volume rendering purposes. The original set were taken from the Osirix imaging application.- See Also:
ModelLUT, Constant Field Values
-
-
Constructor Detail
-
ViewJPanelLUT
public ViewJPanelLUT(ViewJFrameHistoLUT parent)
Deprecated.Set up the LUT panel.- Parameters:
parent- DOCUMENT ME!
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent event)
Deprecated.Calls various methods depending on the action.- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener- Parameters:
event- event that triggered function
-
clearVoxelLabel
public void clearVoxelLabel()
Deprecated.DOCUMENT ME!
-
dispose
public void dispose()
Deprecated.Disposes of components and frame.
-
dragPoint
public void dragPoint(java.awt.event.MouseEvent mouseEvent)
Deprecated.Placeholder.- Specified by:
dragPointin interfaceHistoLUTParent- Parameters:
mouseEvent- drag event
-
getHistoLUTComponentA
public final ViewJComponentHLUTBase getHistoLUTComponentA()
Deprecated.Get the histogram component for imageA.- Returns:
- the imageA histogram component
-
getHistoLUTComponentB
public final ViewJComponentHLUTBase getHistoLUTComponentB()
Deprecated.Get the histogram component for imageB.- Returns:
- the imageB histogram component
-
getLowerThreshold
public float getLowerThreshold()
Deprecated.Returns the lower threshold value.- Returns:
- float lower thresh
-
getLUTa
public final ModelLUT getLUTa()
Deprecated.Get the imageA histo component lut.- Returns:
- ModelLUT
-
getLUTb
public final ModelLUT getLUTb()
Deprecated.Get the imageB histo component lut.- Returns:
- ModelLUT
-
getLUTComponentA
public final ViewJComponentLUT getLUTComponentA()
Deprecated.Get the imageA LUT.- Returns:
- the imageA LUT component
-
getLUTComponentB
public final ViewJComponentLUT getLUTComponentB()
Deprecated.Get the imageB LUT.- Returns:
- the imageB LUT component
-
getLUTRecorder
public JDialogRecordLUT getLUTRecorder()
Deprecated.Get the LUT recorder reference.- Returns:
- JDialogRecordLUT reference to LUT recorder.
-
getUpperThreshold
public float getUpperThreshold()
Deprecated.Returns the upper threshold value.- Returns:
- float upper thresh
-
initGUI
public void initGUI()
Deprecated.Set up the panel components.
-
buildLUTSelectionList
public static final javax.swing.JToolBar buildLUTSelectionList(java.awt.event.ActionListener listener)
Deprecated.Build the center part of the LUT toolbar.- Parameters:
listener- The listener to attach to the created LUT selection combo box.- Returns:
- the top part of the LUT toolbar
-
getCustomLUTList
private static final java.util.Vector<java.lang.String> getCustomLUTList()
Deprecated.
-
isImageASelected
public boolean isImageASelected()
Deprecated.Returns whether the imageA LUT panel is the one being worked on.- Returns:
- whether the imageA LUT panel is the one being worked on
-
isImageBSelected
public boolean isImageBSelected()
Deprecated.Returns whether the imageB LUT panel is the one being worked on.- Returns:
- whether the imageB LUT panel is the one being worked on
-
isImageUpdate
public boolean isImageUpdate()
Deprecated.Indicates if real-time update of the image should take place.- Specified by:
isImageUpdatein interfaceHistoLUTParent- Returns:
trueif real time update should take place
-
itemStateChanged
public void itemStateChanged(java.awt.event.ItemEvent event)
Deprecated.Sets the flags for the checkboxes.- Specified by:
itemStateChangedin interfacejava.awt.event.ItemListener- Parameters:
event- event that triggered this function
-
keyPressed
public void keyPressed(java.awt.event.KeyEvent e)
Deprecated.Unchanged.- Specified by:
keyPressedin interfacejava.awt.event.KeyListener- Parameters:
e- DOCUMENT ME!
-
keyReleased
public void keyReleased(java.awt.event.KeyEvent e)
Deprecated.Unchanged.- Specified by:
keyReleasedin interfacejava.awt.event.KeyListener- Parameters:
e- DOCUMENT ME!
-
keyTyped
public void keyTyped(java.awt.event.KeyEvent e)
Deprecated.If the ENTER key is hit while in threshold boxes, update the LUT's threshold (for dual threshold).- Specified by:
keyTypedin interfacejava.awt.event.KeyListener- Parameters:
e- KeyEvent
-
removeHistoLUTb
public void removeHistoLUTb()
Deprecated.Removes the tabbed pane for the histogram of image B.
-
setAllOff
public void setAllOff()
Deprecated.Placeholder.- Specified by:
setAllOffin interfaceHistoLUTParent
-
setLUT
public void setLUT(ModelLUT newLUT)
Deprecated.Replaces the LUT and builds a new LUT component.- Specified by:
setLUTin interfaceHistoLUTParent- Parameters:
newLUT- New LUT
-
setLUTa
public final void setLUTa(ModelLUT lut)
Deprecated.Change the histogram component LUT.- Parameters:
lut- the new lut
-
setLUTb
public final void setLUTb(ModelLUT lut)
Deprecated.Change the histogram component LUT.- Parameters:
lut- the new lut
-
setNColors
public void setNColors(int value)
Deprecated.Change the text field showing the number of colors.- Parameters:
value- the number of colors
-
setRangeText
public void setRangeText(float x, float y, int _index)Deprecated.Set the range value of the text field.- Specified by:
setRangeTextin interfaceHistoLUTParent- Parameters:
x- the x threshold range valuey- the y threshold range value_index- the cursor index
-
stateChanged
public void stateChanged(javax.swing.event.ChangeEvent e)
Deprecated.Sets values based on knob along slider.- Specified by:
stateChangedin interfacejavax.swing.event.ChangeListener- Parameters:
e- event that triggered this function
-
updateComponentLUT
public void updateComponentLUT()
Deprecated.Placeholder.- Specified by:
updateComponentLUTin interfaceHistoLUTParent
-
updateFrames
public void updateFrames(boolean flag)
Deprecated.Update all of the image frames that display the image this histo lut is for.- Specified by:
updateFramesin interfaceHistoLUTParent- Parameters:
flag- this boolean indicates if the frame that displays the image should re-export the image and apply new LUT- See Also:
ModelImage.notifyImageDisplayListeners()
-
updateHistoLUT
public void updateHistoLUT(ModelImage _imageA, ModelLUT _LUTa, ModelImage _imageB, ModelLUT _LUTb, boolean progressFlag)
Deprecated.This method is called to update the histogram(s) displayed in each tabbed pane of the frame.- Parameters:
_imageA- image A_LUTa- lookup table for image A_imageB- image B_LUTb- lookup table for image BprogressFlag- passed to calculateHistogram algorithm. If false progress bar is not displayed
-
updateLUTPositionString
public void updateLUTPositionString(java.lang.String str)
Deprecated.Placeholder.- Specified by:
updateLUTPositionStringin interfaceHistoLUTParent- Parameters:
str- string
-
updateThresholdFields
public void updateThresholdFields(float lower, float upper)Deprecated.Method to update the threshold text fields when the lower or upper threshold changes.- Specified by:
updateThresholdFieldsin interfaceHistoLUTParent- Parameters:
lower- the lower threshold valueupper- the upper threshold value
-
buildPanelA
private void buildPanelA(ModelImage image, ModelLUT LUT, boolean entireFlag)
Deprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT. Panel for image A.- Parameters:
image- Model of imageLUT- Model of LUTentireFlag- Flag indicating if histogram should be made of entire image.
-
buildPanelB
private void buildPanelB(ModelImage image, ModelLUT LUT, boolean entireFlag)
Deprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT. Panel for image B.- Parameters:
image- Model of imageLUT- Model of LUTentireFlag- Flag indicating if histogram should be made of entire image.
-
calcHistogram
private void calcHistogram(int imageAorB, boolean entireFlag, boolean progressFlag)Deprecated.Calculates histogram for the image(s).- Parameters:
imageAorB- flag to indicate if histogram is to be calculated for imageA or imageB.entireFlag- if true calculate histogram for the entire image. if false uses areas defined by VOI regions.progressFlag- passed to calculateHistogram algorithm. If false progress bar is not displayed
-
calcThreshold
private void calcThreshold()
Deprecated.Calculates the thresholded image based on the parameters of the threshold transfer function. Image A is thresholded if the selected panel is for imageA and likewise for image B.
-
calculateThreshold
private void calculateThreshold()
Deprecated.Calculates the volume (for 3D images) or area (for 2D images) of the image between the two values from the upper and lower bounds text areas.
-
calculateThreshold
private void calculateThreshold(float lower, float upper)Deprecated.Calculates the volume or area of the image between the two values from the upper and lower bounds (inclusive).- Parameters:
lower- Lower bound of the threshold (inclusive).upper- Upper bound of the threshold (inclusive).
-
calculateThresholdArea
private void calculateThresholdArea(float lower, float upper)Deprecated.Calculates the area of the image between the two values from the upper and lower bounds (inclusive).- Parameters:
lower- Lower bound of the threshold (inclusive).upper- Upper bound of the threshold (inclusive).
-
calculateThresholdVolume
private void calculateThresholdVolume(float lower, float upper)Deprecated.Calculates the volume of the image between the two values from the upper and lower bounds (inclusive).- Parameters:
lower- Lower bound of the threshold (inclusive).upper- Upper bound of the threshold (inclusive).
-
isLUT1Based
private boolean isLUT1Based(ModelLUT LUT)
Deprecated.end HistoLUTParent.- Parameters:
LUT- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
openLUTFile
public static final java.io.BufferedReader openLUTFile(java.lang.String lutName) throws java.io.IOExceptionDeprecated.Opens and returns a buffered reader for a given custom LUT name.- Parameters:
lutName- The name of the LUT file (without the extension).- Returns:
- A LUT file buffered reader.
- Throws:
java.io.IOException- See Also:
ModelLUT
-
-