Package gov.nih.mipav.view.renderer
Class JPanelHistoLUT
- java.lang.Object
-
- gov.nih.mipav.view.renderer.JPanelHistoLUT
-
- All Implemented Interfaces:
HistoLUTParent,ViewImageUpdateInterface,java.awt.event.ActionListener,java.awt.event.FocusListener,java.awt.event.ItemListener,java.awt.event.KeyListener,java.util.EventListener,javax.swing.event.ChangeListener
public class JPanelHistoLUT extends java.lang.Object implements java.awt.event.ItemListener, java.awt.event.ActionListener, javax.swing.event.ChangeListener, ViewImageUpdateInterface, java.awt.event.FocusListener, java.awt.event.KeyListener, HistoLUTParent
Deprecated.This class produces a frame where the user can specify a specific LUT, the number of colors of the LUT or dynamically edit the LUT. The frame with histogram of the image data is displayed using the color map. All frames using the color map are dynamically updated with the new color map. This control panel is the control LUT of the gray scale images.- Version:
- 1.0
- See Also:
JFrameHistogram
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classJPanelHistoLUT.DrawingPanelDeprecated.Wrapper in order to hold the control panel layout in the JScrollPane.
-
Field Summary
Fields Modifier and Type Field Description private booleanbImageUpdateDeprecated.Update the LUT in real-time:private JDialogCTHistoLUTctDialogADeprecated.Reference to CT dialog.private JDialogCTHistoLUTctDialogBDeprecated.Reference to CT dialog.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.protected intdisplayModeDeprecated.Indicates which image is to be acted upon when two images are displayed.private booleanentireFlagDeprecated.Flag indicating if histogram should be done on all of image or not.private ModelHistogramhistogramADeprecated.Model histogram A.private ModelHistogramhistogramBDeprecated.Model histogram B.private ViewJPanelHistoLUThistoPanelADeprecated.Panel containing the histogram and lut components for image A.private ViewJPanelHistoLUThistoPanelBDeprecated.Panel containing the histogram and lut components for image B.static intIMAGE_ADeprecated.Display mode image A.static intIMAGE_BDeprecated.Display mode image B.private ModelImageimageADeprecated.image A reference.private ModelImageimageBDeprecated.image B reference.private javax.swing.JTextFieldindexColorATextFDeprecated.Color LUT A, B textfield.private javax.swing.JTextFieldindexColorBTextFDeprecated.Color LUT A, B textfield.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.The histogram log view Check box.private javax.swing.JCheckBoxlogCheckBoxBDeprecated.The histogram log view Check box.private ModelLUTLUTaDeprecated.Model LUT A.private javax.swing.JCheckBoxlutAdjustCheckboxADeprecated.LutA table adjust check box.private javax.swing.JCheckBoxlutAdjustCheckboxBDeprecated.LutB table adjust check box.private ModelLUTLUTbDeprecated.Model LUT B.private javax.swing.JPanelmainPanelDeprecated.The main GUI control panel.private ViewMenuBuildermenuObjDeprecated.Not used now.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.Update check box.private javax.swing.JTextFieldnColorsBTextFDeprecated.Update check box.private javax.swing.JPanelpanelADeprecated.Tabbed panel A.private javax.swing.JPanelpanelBDeprecated.Tabbed panel B.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 javax.swing.JScrollPanescrollerDeprecated.Scroll pane.private JPanelHistoLUT.DrawingPanelscrollPanelDeprecated.Scroll panel that holding the all the control components.private javax.swing.JTabbedPanetabbedPaneDeprecated.The main tabbed control panel.private javax.swing.JTextFieldthreshLowerFDeprecated.threshold related.private javax.swing.JTextFieldthreshUpperFDeprecated.threshold related.private javax.swing.JToolBartoolBarBottomDeprecated.Bottom toolbar.private javax.swing.JToolBartoolBarCenterDeprecated.center toolbarprivate ViewToolBarBuildertoolBarObjDeprecated.Toolbar that hold the linear, horizontal mode control buttons.private javax.swing.JToolBartoolBarTopDeprecated.Top toolbarprivate javax.swing.JPaneltopPanelDeprecated.Toolbar panel.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.
-
Constructor Summary
Constructors Constructor Description JPanelHistoLUT(ModelImage _imageA, ModelImage _imageB, ModelLUT _LUTa, ModelLUT _LUTb, boolean _entireFlag)Deprecated.JPanelHistoLUT(ModelImage _imageA, ModelImage _imageB, ModelLUT _LUTa, ModelLUT _LUTb, boolean _entireFlag, boolean bUpdateImage)Deprecated.
-
Method Summary
All 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.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)Deprecated.Calculates histogram for the image(s).voiddisposeLocal()Deprecated.Still needs more work Matt.voiddragPoint(java.awt.event.MouseEvent mouseEvent)Deprecated.Placeholder.protected voidfinalize()Deprecated.Calls dispose.voidfocusGained(java.awt.event.FocusEvent e)Deprecated.Focus Events:voidfocusLost(java.awt.event.FocusEvent e)Deprecated.If focus is lost from either threshold field (lower/upper), update the new value on the LUT.intgetDisplayMode()Deprecated.Get the LUT panel current display mode.ViewJComponentHLUTBasegetHistoLUTComponentA()Deprecated.Get the histogram component for imageA.ViewJComponentHLUTBasegetHistoLUTComponentB()Deprecated.Get the histogram component for imageB.ModelImagegetImageA()Deprecated.Accessor that returns the imageA.ModelImagegetImageB()Deprecated.Accessor that returns the imageB.ModelLUTgetLUT()Deprecated.This method returns the current LUT.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.javax.swing.JPanelgetMainPanel()Deprecated.Return the main control panel.intgetSelectedLUT()Deprecated.Returns which LUT is currently visible.TransferFunctiongetTransferLine()Deprecated.This method is used to obtain the VOIBase Single Transfer Line.booleanisImageUpdate()Deprecated.Indicates if real-time update of the image should take place.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).voidloadLUTandTransferFunctionFrom(boolean loadAll, java.lang.String filename, java.lang.String dirName, boolean quietMode)Deprecated.This method loads the LUT for the active image.voidloadLUTFrom(boolean loadAll, java.lang.String filename, java.lang.String dirName, boolean quietMode)Deprecated.This method loads the LUT for the active image.protected java.lang.StringmakeString(float number, int decPts)Deprecated.Makes a string of a float with a specific number of decimal points.voidnotifyOfUpdate(ModelLUT LUT, int imageAorB)Deprecated.Enable button to indicate image has changed and the histogram should be recalculated.voidremoveHistoLUTb()Deprecated.Removes the tabbed pane for the histogram of image B.voidresizePanel(int panelWidth, int frameHeight)Deprecated.Resizig the control panel with ViewJFrameVolumeView's frame width and height.voidsaveLUTandTransferFunction(boolean saveAll, java.lang.String filename, java.lang.String dirName)Deprecated.This method saves the LUT for the active image.voidsaveLUTAs(boolean saveAll, java.lang.String filename, java.lang.String dirName)Deprecated.This method saves the LUT for the active image.voidselectLUTa()Deprecated.Forces the panel to display the LUTB panel.voidselectLUTb()Deprecated.Forces the panel to display the LUTB panel.voidsetAllOff()Deprecated.Placeholder.voidsetCTMode(int st, int end)Deprecated.This method is used to set Computed Tomography (CT) presets for CT images.voidsetHistoLUTa(ModelLUT lut)Deprecated.Change the histogram component LUT.voidsetHistoLUTb(ModelLUT lut)Deprecated.Change the histogram component LUT.voidsetImageA(ModelImage image)Deprecated.Accessor that sets the imageA.voidsetImageB(ModelImage image)Deprecated.Accessor that sets the imageB.voidsetLinearLUT()Deprecated.This method sets the histogram to Linear Transfer Function Mode.voidsetLUT(ModelLUT LUT)Deprecated.Replaces the LUT and builds a new LUT component.voidsetLUTa(ModelLUT _LUTa)Deprecated.Set imageA lookup table.voidsetLUTA(ModelLUT LUT)Deprecated.Replaces the LUT A component.voidsetLUTb(ModelLUT _LUTb)Deprecated.Set imageB lookup table.voidsetLUTB(ModelLUT LUT)Deprecated.Replaces the LUT B component.private voidsetLUTs(ModelLUT _LUTa, ModelLUT _LUTb)Deprecated.Set the gray scale image LUT tables.voidsetRangeText(float x, float y, int _index)Deprecated.Set the range value of the text field.voidsetSlice(int slice)Deprecated.Does nothing in this.voidsetTimeSlice(int tSlice)Deprecated.Does nothing in this class.voidstateChanged(javax.swing.event.ChangeEvent e)Deprecated.Sets values based on knob along slider.protected booleantestParameter(java.lang.String str, double minValue, double maxValue)Deprecated.Tests that the entered parameter is in range.voidupdateComponentLUT()Deprecated.update the LUT and images.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.booleanupdateImageExtents()Deprecated.This methods calls the componentImage's REPAINT method to redraw the screen.booleanupdateImages()Deprecated.This methods calls the componentImage's REPAINT method to redraw the screen.booleanupdateImages(boolean flag)Deprecated.This methods calls the componentImage's update method to redraw the screen.booleanupdateImages(ModelLUT LUTa, ModelLUT LUTb, boolean flag, int interpMode)Deprecated.This methods calls the componentImage's update method to redraw the screen.voidupdateLUTPositionString(java.lang.String str)Deprecated.Sets the position string in the LUT text field.voidupdateThresholdFields(float lower, float upper)Deprecated.Method to update the threshold text fields when the lower or upper threshold changes.
-
-
-
Field Detail
-
IMAGE_A
public static final int IMAGE_A
Deprecated.Display mode image A.- See Also:
- Constant Field Values
-
IMAGE_B
public static final int IMAGE_B
Deprecated.Display mode image B.- See Also:
- Constant Field Values
-
displayMode
protected int displayMode
Deprecated.Indicates which image is to be acted upon when two images are displayed.
-
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.Flag indicating if histogram should be done on all of image or not.
-
histogramA
private ModelHistogram histogramA
Deprecated.Model histogram A.
-
histogramB
private ModelHistogram histogramB
Deprecated.Model histogram B.
-
histoPanelA
private ViewJPanelHistoLUT histoPanelA
Deprecated.Panel containing the histogram and lut components for image A.
-
histoPanelB
private ViewJPanelHistoLUT histoPanelB
Deprecated.Panel containing the histogram and lut components for image B.
-
imageA
private ModelImage imageA
Deprecated.image A reference.
-
imageB
private ModelImage imageB
Deprecated.image B reference.
-
indexColorATextF
private javax.swing.JTextField indexColorATextF
Deprecated.Color LUT A, B textfield.
-
indexColorBTextF
private javax.swing.JTextField indexColorBTextF
Deprecated.Color LUT A, B textfield.
-
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.The histogram log view Check box.
-
logCheckBoxB
private javax.swing.JCheckBox logCheckBoxB
Deprecated.The histogram log view Check box.
-
LUTa
private ModelLUT LUTa
Deprecated.Model LUT A.
-
lutAdjustCheckboxA
private javax.swing.JCheckBox lutAdjustCheckboxA
Deprecated.LutA table adjust check box.
-
lutAdjustCheckboxB
private javax.swing.JCheckBox lutAdjustCheckboxB
Deprecated.LutB table adjust check box.
-
LUTb
private ModelLUT LUTb
Deprecated.Model LUT B.
-
mainPanel
private javax.swing.JPanel mainPanel
Deprecated.The main GUI control panel.
-
menuObj
private ViewMenuBuilder menuObj
Deprecated.Not used now.
-
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.Update check box. Updating the histogram and volume during mouse drag.
-
nColorsBTextF
private javax.swing.JTextField nColorsBTextF
Deprecated.Update check box. Updating the histogram and volume during mouse drag.
-
panelA
private javax.swing.JPanel panelA
Deprecated.Tabbed panel A.
-
panelB
private javax.swing.JPanel panelB
Deprecated.Tabbed panel B.
-
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.
-
scroller
private javax.swing.JScrollPane scroller
Deprecated.Scroll pane.
-
scrollPanel
private JPanelHistoLUT.DrawingPanel scrollPanel
Deprecated.Scroll panel that holding the all the control components.
-
tabbedPane
private javax.swing.JTabbedPane tabbedPane
Deprecated.The main tabbed control panel.
-
threshLowerF
private javax.swing.JTextField threshLowerF
Deprecated.threshold related.
-
threshUpperF
private javax.swing.JTextField threshUpperF
Deprecated.threshold related.
-
toolBarBottom
private javax.swing.JToolBar toolBarBottom
Deprecated.Bottom toolbar.
-
toolBarObj
private ViewToolBarBuilder toolBarObj
Deprecated.Toolbar that hold the linear, horizontal mode control buttons.
-
toolBarTop
private javax.swing.JToolBar toolBarTop
Deprecated.Top toolbar
-
toolBarCenter
private javax.swing.JToolBar toolBarCenter
Deprecated.center toolbar
-
topPanel
private javax.swing.JPanel topPanel
Deprecated.Toolbar panel.
-
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.
-
ctDialogA
private JDialogCTHistoLUT ctDialogA
Deprecated.Reference to CT dialog. The CT dialog only works with the componentHistogram.
-
ctDialogB
private JDialogCTHistoLUT ctDialogB
Deprecated.Reference to CT dialog. The CT dialog only works with the componentHistogram.
-
bImageUpdate
private boolean bImageUpdate
Deprecated.Update the LUT in real-time:
-
-
Constructor Detail
-
JPanelHistoLUT
public JPanelHistoLUT(ModelImage _imageA, ModelImage _imageB, ModelLUT _LUTa, ModelLUT _LUTb, boolean _entireFlag)
Deprecated.Makes a frame of the histogram and LUT.- Parameters:
_imageA- Model of imageA_imageB- Model of imageB_LUTa- Model of LUT for image A_LUTb- Model of LUT for image B_entireFlag- Flag indicating if histogram should be done on all of image.
-
JPanelHistoLUT
public JPanelHistoLUT(ModelImage _imageA, ModelImage _imageB, ModelLUT _LUTa, ModelLUT _LUTb, boolean _entireFlag, boolean bUpdateImage)
Deprecated.Makes a frame of the histogram and LUT.- Parameters:
_imageA- Model of imageA_imageB- Model of imageB_LUTa- Model of LUT for image A_LUTb- Model of LUT for image B_entireFlag- Flag indicating if histogram should be done on all of image.
-
-
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
-
disposeLocal
public void disposeLocal()
Deprecated.Still needs more work Matt.
-
dragPoint
public void dragPoint(java.awt.event.MouseEvent mouseEvent)
Deprecated.Placeholder.- Specified by:
dragPointin interfaceHistoLUTParent- Parameters:
mouseEvent- drag event
-
focusGained
public void focusGained(java.awt.event.FocusEvent e)
Deprecated.Focus Events:- Specified by:
focusGainedin interfacejava.awt.event.FocusListener- Parameters:
e- event handler.
-
focusLost
public void focusLost(java.awt.event.FocusEvent e)
Deprecated.If focus is lost from either threshold field (lower/upper), update the new value on the LUT.- Specified by:
focusLostin interfacejava.awt.event.FocusListener- Parameters:
e- FocusEvent
-
getDisplayMode
public int getDisplayMode()
Deprecated.Get the LUT panel current display mode.- Returns:
- int displayMode value, which is either IMAGE_A or IMAGE_B
-
getHistoLUTComponentA
public ViewJComponentHLUTBase getHistoLUTComponentA()
Deprecated.Get the histogram component for imageA.- Returns:
- the imageA histogram component
-
getHistoLUTComponentB
public ViewJComponentHLUTBase getHistoLUTComponentB()
Deprecated.Get the histogram component for imageB.- Returns:
- the imageB histogram component
-
getImageA
public ModelImage getImageA()
Deprecated.Accessor that returns the imageA.- Returns:
- image
-
getImageB
public ModelImage getImageB()
Deprecated.Accessor that returns the imageB.- Returns:
- imageB
-
getLUT
public ModelLUT getLUT()
Deprecated.This method returns the current LUT.- Returns:
- LUT for Image A if selected, otherwise for Image B
-
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 ViewJComponentLUT getLUTComponentA()
Deprecated.Get the imageA LUT.- Returns:
- the imageA LUT component
-
getLUTComponentB
public ViewJComponentLUT getLUTComponentB()
Deprecated.Get the imageB LUT.- Returns:
- the imageB LUT component
-
getMainPanel
public javax.swing.JPanel getMainPanel()
Deprecated.Return the main control panel.- Returns:
- mainPanel the main control panel
-
getSelectedLUT
public int getSelectedLUT()
Deprecated.Returns which LUT is currently visible.- Returns:
- return the currently selcted LUT table index.
-
getTransferLine
public TransferFunction getTransferLine()
Deprecated.This method is used to obtain the VOIBase Single Transfer Line.- Returns:
- LUTb.getTransferFunction() - VOIBase of Single Transfer Line for Image B
-
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- key press event handler.
-
keyReleased
public void keyReleased(java.awt.event.KeyEvent e)
Deprecated.Unchanged.- Specified by:
keyReleasedin interfacejava.awt.event.KeyListener- Parameters:
e- kay release event handler.
-
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
-
loadLUTFrom
public void loadLUTFrom(boolean loadAll, java.lang.String filename, java.lang.String dirName, boolean quietMode)Deprecated.This method loads the LUT for the active image. If the image is not a color image then both the functions and the LUT data are loaded. If this is a color image, then only the functions are loaded.- Parameters:
loadAll- loadAll boolean indicating that both lut and transfer functions should be loaded. If false, then only transfer functions are loaded.filename- filename filename to save LUT asdirName- dirName directory to save LUT toquietMode- quietMode if true indicates that warnings should not be displayed.
-
loadLUTandTransferFunctionFrom
public void loadLUTandTransferFunctionFrom(boolean loadAll, java.lang.String filename, java.lang.String dirName, boolean quietMode)Deprecated.This method loads the LUT for the active image. If the image is not a color image then both the functions and the LUT data are loaded. If this is a color image, then only the functions are loaded.- Parameters:
loadAll- loadAll boolean indicating that both lut and transfer functions should be loaded. If false, then only transfer functions are loaded.filename- filename filename to save LUT asdirName- dirName directory to save LUT toquietMode- quietMode if true indicates that warnings should not be displayed.
-
notifyOfUpdate
public void notifyOfUpdate(ModelLUT LUT, int imageAorB)
Deprecated.Enable button to indicate image has changed and the histogram should be recalculated.- Parameters:
LUT- new Lookup tableimageAorB- indicates which histogram needs to be recalculated
-
removeHistoLUTb
public void removeHistoLUTb()
Deprecated.Removes the tabbed pane for the histogram of image B.
-
resizePanel
public void resizePanel(int panelWidth, int frameHeight)Deprecated.Resizig the control panel with ViewJFrameVolumeView's frame width and height.- Parameters:
panelWidth- panel width.frameHeight- parent frame height.
-
saveLUTAs
public void saveLUTAs(boolean saveAll, java.lang.String filename, java.lang.String dirName)Deprecated.This method saves the LUT for the active image. If the image is not a color image then both the functions and the LUT data are saved. If this is a color image, then only the functions are saved.- Parameters:
saveAll- boolean indicating that both lut and transfer functions should be saved. If false, then only transfer functions are saved.If either filename or directory is null, then the user will be prompted for a filename.
filename- filename to save LUT asdirName- directory to save LUT to
-
saveLUTandTransferFunction
public void saveLUTandTransferFunction(boolean saveAll, java.lang.String filename, java.lang.String dirName)Deprecated.This method saves the LUT for the active image. If the image is not a color image then both the functions and the LUT data are saved. If this is a color image, then only the functions are saved.- Parameters:
saveAll- boolean indicating that both lut and transfer functions should be saved. If false, then only transfer functions are saved.If either filename or directory is null, then the user will be prompted for a filename.
filename- filename to save LUT asdirName- directory to save LUT to
-
selectLUTa
public void selectLUTa()
Deprecated.Forces the panel to display the LUTB panel.
-
selectLUTb
public void selectLUTb()
Deprecated.Forces the panel to display the LUTB panel.
-
setAllOff
public void setAllOff()
Deprecated.Placeholder.- Specified by:
setAllOffin interfaceHistoLUTParent
-
setCTMode
public void setCTMode(int st, int end)Deprecated.This method is used to set Computed Tomography (CT) presets for CT images.- Parameters:
st- starting preset of the windowend- ending preset of the window- See Also:
JDialogCT
-
setHistoLUTa
public final void setHistoLUTa(ModelLUT lut)
Deprecated.Change the histogram component LUT.- Parameters:
lut- the new lut
-
setHistoLUTb
public final void setHistoLUTb(ModelLUT lut)
Deprecated.Change the histogram component LUT.- Parameters:
lut- the new lut
-
setImageA
public void setImageA(ModelImage image)
Deprecated.Accessor that sets the imageA.- Parameters:
image- image to set frame to
-
setImageB
public void setImageB(ModelImage image)
Deprecated.Accessor that sets the imageB.- Parameters:
image- image to set frame to
-
setLinearLUT
public void setLinearLUT()
Deprecated.This method sets the histogram to Linear Transfer Function Mode.
-
setLUT
public void setLUT(ModelLUT LUT)
Deprecated.Replaces the LUT and builds a new LUT component.- Specified by:
setLUTin interfaceHistoLUTParent- Parameters:
LUT- New LUT
-
setLUTA
public void setLUTA(ModelLUT LUT)
Deprecated.Replaces the LUT A component.- Parameters:
LUT- new LUT
-
setLUTa
public void setLUTa(ModelLUT _LUTa)
Deprecated.Set imageA lookup table.- Parameters:
_LUTa- ModelLUTa
-
setLUTB
public void setLUTB(ModelLUT LUT)
Deprecated.Replaces the LUT B component.- Parameters:
LUT- new LUT
-
setLUTb
public void setLUTb(ModelLUT _LUTb)
Deprecated.Set imageB lookup table.- Parameters:
_LUTb- ModelLUTb
-
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
-
setSlice
public void setSlice(int slice)
Deprecated.Does nothing in this.- Specified by:
setSlicein interfaceViewImageUpdateInterface- Parameters:
slice- slice value.
-
setTimeSlice
public void setTimeSlice(int tSlice)
Deprecated.Does nothing in this class.- Specified by:
setTimeSlicein interfaceViewImageUpdateInterface- Parameters:
tSlice- time slice value.
-
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.update the LUT and images.- 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
-
updateImageExtents
public boolean updateImageExtents()
Deprecated.This methods calls the componentImage's REPAINT method to redraw the screen. The extents on this image have changed, so the extents need to be read in again and menus, panes and slide bars adjusted accordingly.- Specified by:
updateImageExtentsin interfaceViewImageUpdateInterface- Returns:
- return false.
-
updateImages
public boolean updateImages()
Deprecated.This methods calls the componentImage's REPAINT method to redraw the screen. Without LUT changes or image changes- Specified by:
updateImagesin interfaceViewImageUpdateInterface- Returns:
- return false.
-
updateImages
public boolean updateImages(boolean flag)
Deprecated.This methods calls the componentImage's update method to redraw the screen. Without LUT changes. Does nothing in this class.- Specified by:
updateImagesin interfaceViewImageUpdateInterface- Parameters:
flag- forces show to re import image and calc. java image- Returns:
- boolean confirming successful update
-
updateImages
public boolean updateImages(ModelLUT LUTa, ModelLUT LUTb, boolean flag, int interpMode)
Deprecated.This methods calls the componentImage's update method to redraw the screen. Does nothing in this class.- Specified by:
updateImagesin interfaceViewImageUpdateInterface- Parameters:
LUTa- LUT used to update imageALUTb- LUT used to update imageBflag- forces show to re import image and calc. java imageinterpMode- image interpolation method (Nearest or Smooth)- Returns:
- boolean confirming a successful update
-
updateLUTPositionString
public void updateLUTPositionString(java.lang.String str)
Deprecated.Sets the position string in the LUT text field.- Specified by:
updateLUTPositionStringin interfaceHistoLUTParent- Parameters:
str- the position 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
-
finalize
protected void finalize() throws java.lang.ThrowableDeprecated.Calls dispose.- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable- dispose memory.
-
makeString
protected java.lang.String makeString(float number, int decPts)Deprecated.Makes a string of a float with a specific number of decimal points.- Parameters:
number- number to be converted to a stringdecPts- the number of decimal points- Returns:
- string representation of the number
-
testParameter
protected boolean testParameter(java.lang.String str, double minValue, double maxValue)Deprecated.Tests that the entered parameter is in range.- Parameters:
str- the value entered by the userminValue- the minimum value this variable may be set tomaxValue- the maximum value this variable may be set to- Returns:
- boolean result of test
-
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)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.
-
-