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 JDialogCT
ctDialogA
Deprecated.DOCUMENT ME!private JDialogCT
ctDialogB
Deprecated.DOCUMENT ME!private int
cursorIndex
Deprecated.Active mouse cursor index of the imageA, B and GM image A, B.private int
cursorIndexB
Deprecated.Active mouse cursor index of the imageA, B and GM image A, B.static java.lang.String
customLUTsLocation
Deprecated.private boolean
entireFlag
Deprecated.DOCUMENT ME!private ModelHistogram
histogramA
Deprecated.DOCUMENT ME!private ModelHistogram
histogramB
Deprecated.DOCUMENT ME!private ViewJPanelHistoLUT
histoPanelA
Deprecated.DOCUMENT ME!private ViewJPanelHistoLUT
histoPanelB
Deprecated.DOCUMENT ME!private javax.swing.JTextField
indexColorATextF
Deprecated.DOCUMENT ME!private javax.swing.JTextField
indexColorBTextF
Deprecated.DOCUMENT ME!private javax.swing.JCheckBox
interpCheckBoxA
Deprecated.DOCUMENT ME!private javax.swing.JCheckBox
interpCheckBoxB
Deprecated.DOCUMENT ME!private java.util.Hashtable<java.lang.Integer,javax.swing.JLabel>
labelsTable
Deprecated.Histogram dialog slider labels of the imageA, B and GM imageA, B.private java.util.Hashtable<java.lang.Integer,javax.swing.JLabel>
labelsTableB
Deprecated.Histogram dialog slider labels of the imageA, B and GM imageA, B.private javax.swing.JCheckBox
logCheckBoxA
Deprecated.DOCUMENT ME!private javax.swing.JCheckBox
logCheckBoxB
Deprecated.DOCUMENT ME!private javax.swing.JLabel
mouseLabel
Deprecated.The opacity slider label.private javax.swing.JLabel
mouseLabelB
Deprecated.The opacity slider label.private javax.swing.JSlider
mouseSlider
Deprecated.Opacity X scale sliders.private javax.swing.JSlider
mouseSliderB
Deprecated.Opacity X scale sliders.private javax.swing.JLabel[]
mouseSliderLabels
Deprecated.The labels below the opacity slider.private javax.swing.JLabel[]
mouseSliderLabelsB
Deprecated.The labels below the opacity slider.private javax.swing.JTextField
nColorsATextF
Deprecated.DOCUMENT ME!private javax.swing.JTextField
nColorsBTextF
Deprecated.DOCUMENT ME!private javax.swing.JCheckBox
oneBasedLUTCheckBoxImageB
Deprecated.DOCUMENT ME!private javax.swing.JComboBox
outputBox
Deprecated.DOCUMENT ME!private javax.swing.JComboBox
outputBoxB
Deprecated.DOCUMENT ME!private javax.swing.JPanel
panelA
Deprecated.DOCUMENT ME!private javax.swing.JPanel
panelB
Deprecated.DOCUMENT ME!private ViewJFrameHistoLUT
panelParent
Deprecated.DOCUMENT ME!private javax.swing.JTextField
rangeText
Deprecated.X range text field in the imageA, B histogram dialog.private javax.swing.JTextField
rangeTextB
Deprecated.X range text field in the imageA, B histogram dialog.private float
rangeX
Deprecated.X range value of the imageA, B and GM imageA, B.private float
rangeXB
Deprecated.X range value of the imageA, B and GM imageA, B.private int
scaleRangeA
Deprecated.Scale range value according to the image min and max.private int
scaleRangeB
Deprecated.Scale range value according to the image min and max.private static long
serialVersionUID
Deprecated.Use serialVersionUID for interoperability.private javax.swing.JTabbedPane
tabbedPane
Deprecated.DOCUMENT ME!private javax.swing.JTextField
threshFillBF
Deprecated.DOCUMENT ME!private javax.swing.JTextField
threshFillF
Deprecated.threshold related.private javax.swing.JTextField
threshLowerBF
Deprecated.DOCUMENT ME!private javax.swing.JTextField
threshLowerF
Deprecated.threshold related.private javax.swing.JTextField
threshUpperBF
Deprecated.DOCUMENT ME!private javax.swing.JTextField
threshUpperF
Deprecated.threshold related.private javax.swing.JToolBar
toolBarBottom
Deprecated.DOCUMENT ME!private javax.swing.JToolBar
toolBarCenter
Deprecated.center toolbarprivate ViewToolBarBuilder
toolBarObj
Deprecated.DOCUMENT ME!private javax.swing.JToolBar
toolBarThreshold
Deprecated.DOCUMENT ME!private javax.swing.JToolBar
toolBarTop
Deprecated.DOCUMENT ME!private javax.swing.JCheckBox
updateCheckBoxA
Deprecated.DOCUMENT ME!private javax.swing.JCheckBox
updateCheckBoxB
Deprecated.DOCUMENT ME!private javax.swing.JLabel
voxelVolumeLabel
Deprecated.Used to display the volume or area of the voxels/pixels between the upper and lower bounds.private javax.swing.JTextField
xRangeTextA
Deprecated.X range text field in the imageA, B and GM image A, B histogram dialog.private javax.swing.JTextField
xRangeTextB
Deprecated.X range text field in the imageA, B and GM image A, B histogram dialog.private javax.swing.JTextField
yRangeTextA
Deprecated.Y range text field in the imageA, B and GM image A, B histogram dialog.private javax.swing.JTextField
yRangeTextB
Deprecated.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 void
actionPerformed(java.awt.event.ActionEvent event)
Deprecated.Calls various methods depending on the action.static javax.swing.JToolBar
buildLUTSelectionList(java.awt.event.ActionListener listener)
Deprecated.private void
buildPanelA(ModelImage image, ModelLUT LUT, boolean entireFlag)
Deprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT.private void
buildPanelB(ModelImage image, ModelLUT LUT, boolean entireFlag)
Deprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT.private void
calcHistogram(int imageAorB, boolean entireFlag, boolean progressFlag)
Deprecated.Calculates histogram for the image(s).private void
calcThreshold()
Deprecated.Calculates the thresholded image based on the parameters of the threshold transfer function.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.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).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).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).void
clearVoxelLabel()
Deprecated.DOCUMENT ME!void
dispose()
Deprecated.Disposes of components and frame.void
dragPoint(java.awt.event.MouseEvent mouseEvent)
Deprecated.Placeholder.private static java.util.Vector<java.lang.String>
getCustomLUTList()
Deprecated.ViewJComponentHLUTBase
getHistoLUTComponentA()
Deprecated.Get the histogram component for imageA.ViewJComponentHLUTBase
getHistoLUTComponentB()
Deprecated.Get the histogram component for imageB.float
getLowerThreshold()
Deprecated.Returns the lower threshold value.ModelLUT
getLUTa()
Deprecated.Get the imageA histo component lut.ModelLUT
getLUTb()
Deprecated.Get the imageB histo component lut.ViewJComponentLUT
getLUTComponentA()
Deprecated.Get the imageA LUT.ViewJComponentLUT
getLUTComponentB()
Deprecated.Get the imageB LUT.JDialogRecordLUT
getLUTRecorder()
Deprecated.Get the LUT recorder reference.float
getUpperThreshold()
Deprecated.Returns the upper threshold value.void
initGUI()
Deprecated.Set up the panel components.boolean
isImageASelected()
Deprecated.Returns whether the imageA LUT panel is the one being worked on.boolean
isImageBSelected()
Deprecated.Returns whether the imageB LUT panel is the one being worked on.boolean
isImageUpdate()
Deprecated.Indicates if real-time update of the image should take place.private boolean
isLUT1Based(ModelLUT LUT)
Deprecated.end HistoLUTParent.void
itemStateChanged(java.awt.event.ItemEvent event)
Deprecated.Sets the flags for the checkboxes.void
keyPressed(java.awt.event.KeyEvent e)
Deprecated.Unchanged.void
keyReleased(java.awt.event.KeyEvent e)
Deprecated.Unchanged.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).static java.io.BufferedReader
openLUTFile(java.lang.String lutName)
Deprecated.void
removeHistoLUTb()
Deprecated.Removes the tabbed pane for the histogram of image B.void
setAllOff()
Deprecated.Placeholder.void
setLUT(ModelLUT newLUT)
Deprecated.Replaces the LUT and builds a new LUT component.void
setLUTa(ModelLUT lut)
Deprecated.Change the histogram component LUT.void
setLUTb(ModelLUT lut)
Deprecated.Change the histogram component LUT.void
setNColors(int value)
Deprecated.Change the text field showing the number of colors.void
setRangeText(float x, float y, int _index)
Deprecated.Set the range value of the text field.void
stateChanged(javax.swing.event.ChangeEvent e)
Deprecated.Sets values based on knob along slider.void
updateComponentLUT()
Deprecated.Placeholder.void
updateFrames(boolean flag)
Deprecated.Update all of the image frames that display the image this histo lut is for.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.void
updateLUTPositionString(java.lang.String str)
Deprecated.Placeholder.void
updateThresholdFields(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:
actionPerformed
in 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:
dragPoint
in 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:
isImageUpdate
in interfaceHistoLUTParent
- Returns:
true
if real time update should take place
-
itemStateChanged
public void itemStateChanged(java.awt.event.ItemEvent event)
Deprecated.Sets the flags for the checkboxes.- Specified by:
itemStateChanged
in interfacejava.awt.event.ItemListener
- Parameters:
event
- event that triggered this function
-
keyPressed
public void keyPressed(java.awt.event.KeyEvent e)
Deprecated.Unchanged.- Specified by:
keyPressed
in interfacejava.awt.event.KeyListener
- Parameters:
e
- DOCUMENT ME!
-
keyReleased
public void keyReleased(java.awt.event.KeyEvent e)
Deprecated.Unchanged.- Specified by:
keyReleased
in 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:
keyTyped
in 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:
setAllOff
in interfaceHistoLUTParent
-
setLUT
public void setLUT(ModelLUT newLUT)
Deprecated.Replaces the LUT and builds a new LUT component.- Specified by:
setLUT
in 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:
setRangeText
in 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:
stateChanged
in interfacejavax.swing.event.ChangeListener
- Parameters:
e
- event that triggered this function
-
updateComponentLUT
public void updateComponentLUT()
Deprecated.Placeholder.- Specified by:
updateComponentLUT
in 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:
updateFrames
in 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:
updateLUTPositionString
in 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:
updateThresholdFields
in 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.IOException
Deprecated.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
-
-