Package gov.nih.mipav.view.renderer
Class JPanelHistoLUT
java.lang.Object
gov.nih.mipav.view.renderer.JPanelHistoLUT
- All Implemented Interfaces:
HistoLUTParent,ViewImageUpdateInterface,ActionListener,FocusListener,ItemListener,KeyListener,EventListener,ChangeListener
public class JPanelHistoLUT
extends Object
implements ItemListener, ActionListener, ChangeListener, ViewImageUpdateInterface, FocusListener, 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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classDeprecated.Wrapper in order to hold the control panel layout in the JScrollPane. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanDeprecated.Update the LUT in real-time:private JDialogCTHistoLUTDeprecated.Reference to CT dialog.private JDialogCTHistoLUTDeprecated.Reference to CT dialog.private intDeprecated.Active mouse cursor index of the imageA, B and GM image A, B.private intDeprecated.Active mouse cursor index of the imageA, B and GM image A, B.protected intDeprecated.Indicates which image is to be acted upon when two images are displayed.private booleanDeprecated.Flag indicating if histogram should be done on all of image or not.private ModelHistogramDeprecated.Model histogram A.private ModelHistogramDeprecated.Model histogram B.private ViewJPanelHistoLUTDeprecated.Panel containing the histogram and lut components for image A.private ViewJPanelHistoLUTDeprecated.Panel containing the histogram and lut components for image B.static final intDeprecated.Display mode image A.static final intDeprecated.Display mode image B.private ModelImageDeprecated.image A reference.private ModelImageDeprecated.image B reference.private JTextFieldDeprecated.Color LUT A, B textfield.private JTextFieldDeprecated.Color LUT A, B textfield.Deprecated.Histogram dialog slider labels of the imageA, B and GM imageA, B.Deprecated.Histogram dialog slider labels of the imageA, B and GM imageA, B.private JCheckBoxDeprecated.The histogram log view Check box.private JCheckBoxDeprecated.The histogram log view Check box.private ModelLUTDeprecated.Model LUT A.private JCheckBoxDeprecated.LutA table adjust check box.private JCheckBoxDeprecated.LutB table adjust check box.private ModelLUTDeprecated.Model LUT B.private JPanelDeprecated.The main GUI control panel.private ViewMenuBuilderDeprecated.Not used now.private JLabelDeprecated.The opacity slider label.private JLabelDeprecated.The opacity slider label.private JSliderDeprecated.Opacity X scale sliders.private JSliderDeprecated.Opacity X scale sliders.private JLabel[]Deprecated.The labels below the opacity slider.private JLabel[]Deprecated.The labels below the opacity slider.private JTextFieldDeprecated.Update check box.private JTextFieldDeprecated.Update check box.private JPanelDeprecated.Tabbed panel A.private JPanelDeprecated.Tabbed panel B.private JTextFieldDeprecated.X range text field in the imageA, B histogram dialog.private JTextFieldDeprecated.X range text field in the imageA, B histogram dialog.private floatDeprecated.X range value of the imageA, B and GM imageA, B.private floatDeprecated.X range value of the imageA, B and GM imageA, B.private intDeprecated.Scale range value according to the image min and max.private intDeprecated.Scale range value according to the image min and max.private JScrollPaneDeprecated.Scroll pane.private JPanelHistoLUT.DrawingPanelDeprecated.Scroll panel that holding the all the control components.private JTabbedPaneDeprecated.The main tabbed control panel.private JTextFieldDeprecated.threshold related.private JTextFieldDeprecated.threshold related.private JToolBarDeprecated.Bottom toolbar.private JToolBarDeprecated.center toolbarprivate ViewToolBarBuilderDeprecated.Toolbar that hold the linear, horizontal mode control buttons.private JToolBarDeprecated.Top toolbarprivate JPanelDeprecated.Toolbar panel.private JTextFieldDeprecated.X range text field in the imageA, B and GM image A, B histogram dialog.private JTextFieldDeprecated.X range text field in the imageA, B and GM image A, B histogram dialog.private JTextFieldDeprecated.Y range text field in the imageA, B and GM image A, B histogram dialog.private JTextFieldDeprecated.Y range text field in the imageA, B and GM image A, B histogram dialog. -
Constructor Summary
ConstructorsConstructorDescriptionJPanelHistoLUT(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
Modifier and TypeMethodDescriptionvoidactionPerformed(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).voidDeprecated.Still needs more work Matt.voiddragPoint(MouseEvent mouseEvent) Deprecated.Placeholder.protected voidfinalize()Deprecated.Calls dispose.voidDeprecated.Focus Events:voidDeprecated.If focus is lost from either threshold field (lower/upper), update the new value on the LUT.intDeprecated.Get the LUT panel current display mode.Deprecated.Get the histogram component for imageA.Deprecated.Get the histogram component for imageB.Deprecated.Accessor that returns the imageA.Deprecated.Accessor that returns the imageB.getLUT()Deprecated.This method returns the current LUT.final ModelLUTgetLUTa()Deprecated.Get the imageA histo component lut.final ModelLUTgetLUTb()Deprecated.Get the imageB histo component lut.Deprecated.Get the imageA LUT.Deprecated.Get the imageB LUT.Deprecated.Return the main control panel.intDeprecated.Returns which LUT is currently visible.Deprecated.This method is used to obtain the VOIBase Single Transfer Line.booleanDeprecated.Indicates if real-time update of the image should take place.voiditemStateChanged(ItemEvent event) Deprecated.Sets the flags for the checkboxes.voidDeprecated.Unchanged.voidDeprecated.Unchanged.voidDeprecated.If the ENTER key is hit while in threshold boxes, update the LUT's threshold (for dual threshold).voidloadLUTandTransferFunctionFrom(boolean loadAll, String filename, String dirName, boolean quietMode) Deprecated.This method loads the LUT for the active image.voidloadLUTFrom(boolean loadAll, String filename, String dirName, boolean quietMode) Deprecated.This method loads the LUT for the active image.protected 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.voidDeprecated.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, String filename, String dirName) Deprecated.This method saves the LUT for the active image.voidDeprecated.This method saves the LUT for the active image.voidDeprecated.Forces the panel to display the LUTB panel.voidDeprecated.Forces the panel to display the LUTB panel.voidDeprecated.Placeholder.voidsetCTMode(int st, int end) Deprecated.This method is used to set Computed Tomography (CT) presets for CT images.final voidsetHistoLUTa(ModelLUT lut) Deprecated.Change the histogram component LUT.final 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.voidDeprecated.This method sets the histogram to Linear Transfer Function Mode.voidDeprecated.Replaces the LUT and builds a new LUT component.voidDeprecated.Set imageA lookup table.voidDeprecated.Replaces the LUT A component.voidDeprecated.Set imageB lookup table.voidDeprecated.Replaces the LUT B component.private voidDeprecated.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.voidDeprecated.Sets values based on knob along slider.protected booleantestParameter(String str, double minValue, double maxValue) Deprecated.Tests that the entered parameter is in range.voidDeprecated.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.booleanDeprecated.This methods calls the componentImage's REPAINT method to redraw the screen.booleanDeprecated.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.voidDeprecated.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 Details
-
IMAGE_A
public static final int IMAGE_ADeprecated.Display mode image A.- See Also:
-
IMAGE_B
public static final int IMAGE_BDeprecated.Display mode image B.- See Also:
-
displayMode
protected int displayModeDeprecated.Indicates which image is to be acted upon when two images are displayed. -
cursorIndex
private int cursorIndexDeprecated.Active mouse cursor index of the imageA, B and GM image A, B. -
cursorIndexB
private int cursorIndexBDeprecated.Active mouse cursor index of the imageA, B and GM image A, B. -
entireFlag
private boolean entireFlagDeprecated.Flag indicating if histogram should be done on all of image or not. -
histogramA
Deprecated.Model histogram A. -
histogramB
Deprecated.Model histogram B. -
histoPanelA
Deprecated.Panel containing the histogram and lut components for image A. -
histoPanelB
Deprecated.Panel containing the histogram and lut components for image B. -
imageA
Deprecated.image A reference. -
imageB
Deprecated.image B reference. -
indexColorATextF
Deprecated.Color LUT A, B textfield. -
indexColorBTextF
Deprecated.Color LUT A, B textfield. -
labelsTable
Deprecated.Histogram dialog slider labels of the imageA, B and GM imageA, B. -
labelsTableB
Deprecated.Histogram dialog slider labels of the imageA, B and GM imageA, B. -
logCheckBoxA
Deprecated.The histogram log view Check box. -
logCheckBoxB
Deprecated.The histogram log view Check box. -
LUTa
Deprecated.Model LUT A. -
lutAdjustCheckboxA
Deprecated.LutA table adjust check box. -
lutAdjustCheckboxB
Deprecated.LutB table adjust check box. -
LUTb
Deprecated.Model LUT B. -
mainPanel
Deprecated.The main GUI control panel. -
mouseLabel
Deprecated.The opacity slider label. -
mouseLabelB
Deprecated.The opacity slider label. -
mouseSlider
Deprecated.Opacity X scale sliders. -
mouseSliderB
Deprecated.Opacity X scale sliders. -
mouseSliderLabels
Deprecated.The labels below the opacity slider. -
mouseSliderLabelsB
Deprecated.The labels below the opacity slider. -
nColorsATextF
Deprecated.Update check box. Updating the histogram and volume during mouse drag. -
nColorsBTextF
Deprecated.Update check box. Updating the histogram and volume during mouse drag. -
panelA
Deprecated.Tabbed panel A. -
panelB
Deprecated.Tabbed panel B. -
rangeText
Deprecated.X range text field in the imageA, B histogram dialog. -
rangeTextB
Deprecated.X range text field in the imageA, B histogram dialog. -
rangeX
private float rangeXDeprecated.X range value of the imageA, B and GM imageA, B. -
rangeXB
private float rangeXBDeprecated.X range value of the imageA, B and GM imageA, B. -
scaleRangeA
private int scaleRangeADeprecated.Scale range value according to the image min and max. -
scaleRangeB
private int scaleRangeBDeprecated.Scale range value according to the image min and max. -
scroller
Deprecated.Scroll pane. -
scrollPanel
Deprecated.Scroll panel that holding the all the control components. -
tabbedPane
Deprecated.The main tabbed control panel. -
threshLowerF
Deprecated.threshold related. -
threshUpperF
Deprecated.threshold related. -
toolBarBottom
Deprecated.Bottom toolbar. -
toolBarObj
Deprecated.Toolbar that hold the linear, horizontal mode control buttons. -
toolBarTop
Deprecated.Top toolbar -
toolBarCenter
Deprecated.center toolbar -
topPanel
Deprecated.Toolbar panel. -
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
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
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
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
Deprecated.Reference to CT dialog. The CT dialog only works with the componentHistogram. -
ctDialogB
Deprecated.Reference to CT dialog. The CT dialog only works with the componentHistogram. -
bImageUpdate
private boolean bImageUpdateDeprecated.Update the LUT in real-time:
-
-
Constructor Details
-
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 Details
-
actionPerformed
Deprecated.Calls various methods depending on the action.- Specified by:
actionPerformedin interfaceActionListener- Parameters:
event- event that triggered function
-
disposeLocal
public void disposeLocal()Deprecated.Still needs more work Matt. -
dragPoint
Deprecated.Placeholder.- Specified by:
dragPointin interfaceHistoLUTParent- Parameters:
mouseEvent- drag event
-
focusGained
Deprecated.Focus Events:- Specified by:
focusGainedin interfaceFocusListener- Parameters:
e- event handler.
-
focusLost
Deprecated.If focus is lost from either threshold field (lower/upper), update the new value on the LUT.- Specified by:
focusLostin interfaceFocusListener- 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
Deprecated.Get the histogram component for imageA.- Returns:
- the imageA histogram component
-
getHistoLUTComponentB
Deprecated.Get the histogram component for imageB.- Returns:
- the imageB histogram component
-
getImageA
Deprecated.Accessor that returns the imageA.- Returns:
- image
-
getImageB
Deprecated.Accessor that returns the imageB.- Returns:
- imageB
-
getLUT
Deprecated.This method returns the current LUT.- Returns:
- LUT for Image A if selected, otherwise for Image B
-
getLUTa
Deprecated.Get the imageA histo component lut.- Returns:
- ModelLUT
-
getLUTb
Deprecated.Get the imageB histo component lut.- Returns:
- ModelLUT
-
getLUTComponentA
Deprecated.Get the imageA LUT.- Returns:
- the imageA LUT component
-
getLUTComponentB
Deprecated.Get the imageB LUT.- Returns:
- the imageB LUT component
-
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
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
Deprecated.Sets the flags for the checkboxes.- Specified by:
itemStateChangedin interfaceItemListener- Parameters:
event- event that triggered this function
-
keyPressed
Deprecated.Unchanged.- Specified by:
keyPressedin interfaceKeyListener- Parameters:
e- key press event handler.
-
keyReleased
Deprecated.Unchanged.- Specified by:
keyReleasedin interfaceKeyListener- Parameters:
e- kay release event handler.
-
keyTyped
Deprecated.If the ENTER key is hit while in threshold boxes, update the LUT's threshold (for dual threshold).- Specified by:
keyTypedin interfaceKeyListener- Parameters:
e- KeyEvent
-
loadLUTFrom
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, String filename, 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
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
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
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:
-
setHistoLUTa
Deprecated.Change the histogram component LUT.- Parameters:
lut- the new lut
-
setHistoLUTb
Deprecated.Change the histogram component LUT.- Parameters:
lut- the new lut
-
setImageA
Deprecated.Accessor that sets the imageA.- Parameters:
image- image to set frame to
-
setImageB
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
Deprecated.Replaces the LUT and builds a new LUT component.- Specified by:
setLUTin interfaceHistoLUTParent- Parameters:
LUT- New LUT
-
setLUTA
Deprecated.Replaces the LUT A component.- Parameters:
LUT- new LUT
-
setLUTa
Deprecated.Set imageA lookup table.- Parameters:
_LUTa- ModelLUTa
-
setLUTB
Deprecated.Replaces the LUT B component.- Parameters:
LUT- new LUT
-
setLUTb
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
Deprecated.Sets values based on knob along slider.- Specified by:
stateChangedin interfaceChangeListener- 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:
-
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
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
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
Deprecated.Calls dispose. -
makeString
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
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
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
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.
-
setLUTs
Deprecated.Set the gray scale image LUT tables.- Parameters:
_LUTa- ModelLUTA_LUTb- ModelLUTB
-