Package gov.nih.mipav.view.dialogs
Class JDialogVOIStats
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- java.awt.Window
-
- java.awt.Dialog
-
- javax.swing.JDialog
-
- gov.nih.mipav.view.dialogs.JDialogBase
-
- gov.nih.mipav.view.dialogs.JDialogScriptableBase
-
- gov.nih.mipav.view.dialogs.JDialogVOIStats
-
- All Implemented Interfaces:
AlgorithmInterface,ScriptableActionInterface,UpdateVOISelectionListener,DialogDefaultsInterface,java.awt.event.ActionListener,java.awt.event.FocusListener,java.awt.event.ItemListener,java.awt.event.WindowListener,java.awt.image.ImageObserver,java.awt.MenuContainer,java.io.Serializable,java.util.EventListener,javax.accessibility.Accessible,javax.swing.event.ChangeListener,javax.swing.event.TreeSelectionListener,javax.swing.RootPaneContainer,javax.swing.WindowConstants
public class JDialogVOIStats extends JDialogScriptableBase implements java.awt.event.ItemListener, javax.swing.event.ChangeListener, java.awt.event.FocusListener, UpdateVOISelectionListener, javax.swing.event.TreeSelectionListener, AlgorithmInterface
DOCUMENT ME!- Version:
- 1.1 June 15, 1999
- Author:
- Matthew J. McAuliffe, Ph.D.
$Logfile: /mipav/src/gov/nih/mipav/view/dialogs/JDialogVOIStats.java $ $Revision: 56 $ $Date: 2/17/06 6:20p $
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classJDialogVOIStats.CancelListenerDoes nothing.(package private) classJDialogVOIStats.OkColorListenerPick up the selected color and call method to change the VOI color.private classJDialogVOIStats.VOITreePopupDOCUMENT ME!private classJDialogVOIStats.VOITreeRendererDOCUMENT ME!-
Nested classes/interfaces inherited from class gov.nih.mipav.view.dialogs.JDialogBase
JDialogBase.CancelAction, JDialogBase.HelpAction, JDialogBase.OKAction
-
Nested classes/interfaces inherited from class javax.swing.JDialog
javax.swing.JDialog.AccessibleJDialog
-
Nested classes/interfaces inherited from class java.awt.Dialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
-
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
-
-
Field Summary
Fields Modifier and Type Field Description private intactiveVolumeprivate javax.swing.JRadioButtonactiveVolumeButtonprivate AlgorithmVOIPropsalgoVOIAlgorithm for computing VOI statisticsprivate javax.swing.JRadioButtonallVolumesButtonprotected javax.swing.JButtonapplyButtonApplies bounding box/shading/name display and other UI changes to ModelImageprotected javax.swing.JButtoncalcButtonPerforms statistics calculationsprotected javax.swing.JCheckBoxcheckboxBoundingBoxWhether to display bounding box around VOIprotected javax.swing.JCheckBoxcheckboxIncludeForProcessingWhether to include the selected VOI for statistics processingprotected javax.swing.JCheckBoxcheckboxOpacityWhether to display VOI with shadingprotected javax.swing.JCheckBoxcheckboxSaveStatsWhether to save statistics to a fileprotected javax.swing.JCheckBoxcheckboxVOINameWhether to display VOI nameprotected javax.swing.JButtoncolorButtonAllows VOI color to be selectedprivate ViewJColorChoosercolorChooserInternal dialog box for selecting VOI colorprivate java.awt.ColorcolorVOIThe current color of the selected VOIprivate javax.swing.JTextAreacontourTextAreaDisplays points and name of selected VOI or contourprotected javax.swing.JLabelcurrentOpacityDisplays current opacity level in sliderprivate booleandoAllVolumesprivate JPanelPixelExclusionSelectorexcluderprotected javax.swing.JCheckBoxfollowVOISelectionBoxDOCUMENT ME!protected javax.swing.border.BorderframeBorderDOCUMENT ME!private booleanframeFollowsSelectionDOCUMENT ME!protected javax.swing.JButtonhelpButtonDisplays Stats dialog helpprivate static javax.swing.IconICON_LINEDOCUMENT ME!private static javax.swing.IconICON_MEDICAL_FRAMEDOCUMENT ME!private static javax.swing.IconICON_POINTDOCUMENT ME!private static javax.swing.IconICON_POLYGONDOCUMENT ME!private static javax.swing.IconICON_POLYLINEDOCUMENT ME!private static javax.swing.IconICON_PROTRACTORDOCUMENT ME!private static javax.swing.IconICON_X_AXISDOCUMENT ME!private static javax.swing.IconICON_Y_AXISDOCUMENT ME!private static javax.swing.IconICON_Z_AXISDOCUMENT ME!protected ModelImageimageInternal reference to the currently selected ModelImageprotected JPanelStatisticsListlistPanelThe list of statistics to calculateprotected javax.swing.JSlideropacitySliderThe opacity slider for the selected VOIprivate JDialogVOIStats.VOITreePopuppopupDOCUMENT ME!private ViewVOIVector[]processListList of VOI sets that will have statistics calculatedprivate intprocessListIndexCurrent set of VOIs that are being processedprivate floatrangeMaximumDOCUMENT ME!private floatrangeMaximumBprivate floatrangeMaximumGprivate floatrangeMaximumRprivate floatrangeMinimumDOCUMENT ME!private floatrangeMinimumBprivate floatrangeMinimumGprivate floatrangeMinimumRprivate javax.swing.tree.DefaultMutableTreeNoderootA reference in the voiTree to the currently selected imageprivate JPanelPixelExclusionSelector.RangeTypescriptRangeWhen running as a script, holds the pixel exclusion range.private shortseedValueThe seed value last entered by the userprotected javax.swing.JTextFieldseedValueTFWatershed seed valueprivate static longserialVersionUIDUse serialVersionUID for interoperability.private AlgorithmSubsetsubsetAlgoprivate ModelImagesubsetImageprivate inttDimprivate booleantreeSelectionChangeDOCUMENT ME!protected javax.swing.JTextFieldUIDfielduid of the selected voiprivate booleanupdateTreeprivate VOIvoiThe selected VOI when the VOIStats dialogue was createdprotected javax.swing.JScrollPanevoiContourPaneDOCUMENT ME!protected VOIHandlerInterfacevoiHandlerprivate javax.swing.tree.DefaultTreeModelvoiModelThe tree of VOIs, composed of an image with children VOIsprotected javax.swing.JTextFieldVOINameName of the currently selected voiprotected javax.swing.JTextFieldVOIThicknessFieldThickness of the currently selected voiprivate javax.swing.JTreevoiTreeThe graphical representation of voiModelprotected javax.swing.JScrollPanevoiTreePaneDisplays the orthoganal list of VOIs in the selected ModelImageprivate VOIwholeImageVOI used for whole image processing-
Fields inherited from class gov.nih.mipav.view.dialogs.JDialogScriptableBase
displayInNewFrame, isComplete, scriptParameters
-
Fields inherited from class gov.nih.mipav.view.dialogs.JDialogBase
bar, cancelButton, cancelFlag, closeButton, HELP, mainDialogPanel, NEW, OKButton, parentFrame, progressBar, REPLACE, runInSeparateThread, runningScriptFlag, runQuiet, serif12, serif12B, voiManager
-
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
-
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
-
-
Constructor Summary
Constructors Constructor Description JDialogVOIStats()Empty constructor needed for dynamic instantiation.JDialogVOIStats(VOIHandlerInterface theVoiHandler, ModelImage img, VOI _voi)Constructor for the JDialogVOIStats.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent event)Applies changes to VOI when "Apply" is pressed; closes when "Cancel" is pressed; and calculates statistics and outputs them to the message frame when "Calculate" is pressed.voidalgorithmPerformed(AlgorithmBase algorithm)Called after an algorithm this listener is registered to exits (maybe successfully, maybe not).private voidanotherCall()protected voidbuildVOIContourPane()DOCUMENT ME!protected voidbuildVOITree()DOCUMENT ME!protected voidcallAlgorithm()Starts the algorithm.voidcallVOIAlgo(ViewVOIVector voiProcessingSet, int processingMode, boolean inSepThread)private java.lang.StringextendName(java.lang.String name, VOI tempVOI, int contourNum, int processType)Changes voi name used for statistics retrieval based on processing modevoidfocusLost(java.awt.event.FocusEvent event)Test the seed value and if appropriate, sets it.JPanelStatisticsListgetListPanel()private VOIgetVOIforProcessing(VOI parent)protected voidinit()Sets up GUI components - buttons, checkboxes, sliders, etc.voiditemStateChanged(java.awt.event.ItemEvent event)Updates the VOI when the checkboxes for title, boundary, processing, and opacity are changedprivate voidprintTree(javax.swing.tree.TreeModel model, java.lang.Object parent)voidselectionChanged(UpdateVOIEvent newVOIselection)responds to the volume of interest (VOI) change events.voidsetCheckboxBoundingBox(boolean flag)protected voidsetGUIFromParams()Set the dialog GUI using the script parameters while running this algorithm as part of a script.voidsetVisible(boolean visible)DOCUMENT ME!private voidsetVOIActive(VOI v)Internal method for setting all relevant parts of the GUI and the MIPAV interface to reflect the active VOI.voidshowColorChooser()DOCUMENT ME!voidstateChanged(javax.swing.event.ChangeEvent e)Sets values based on knob along slider.protected voidstoreParamsFromGUI()Record the parameters just used to run this algorithm in a script.private voidupdateContourPane(VOIBase leadBase)DOCUMENT ME!voidupdateTree()DOCUMENT ME!voidupdateVOIPanel(VOI _voi, ModelImage img)Updates the dialog based on the VOI passed in.voidvalueChanged(javax.swing.event.TreeSelectionEvent e)Updates the ViewJFrameImage when a VOI/contour is selected.-
Methods inherited from class gov.nih.mipav.view.dialogs.JDialogScriptableBase
doPostAlgorithmActions, getDialogActionString, insertScriptLine, isComplete, scriptRun, setComplete
-
Methods inherited from class gov.nih.mipav.view.dialogs.JDialogBase
buildApplyButton, buildButtons, buildCancelButton, buildCancelButton, buildCloseButton, buildHelpButton, buildImageComboBox, buildOKButton, buildOKButton, buildOKCancelButtons, buildTitledBorder, buildTitledBorder, createLabel, createProgressBar, createProgressBar, createTextField, focusGained, getDialogName, isCancelled, isQuietRunning, isRunInSeparateThread, isScriptRunning, loadDefaults, loadDefaults, makeImageName, makeString, openNewFrame, saveDefaults, saveDefaults, setLeftHandSystem, setQuietRunning, setScriptRunning, setSeparateThread, setVisible, setVisibleMenuBar, setVisibleStandard, setVOIManager, setWCSystem, testParameter, testParameterMin, updateFFTFileInfo, updateFileInfo, updateFileInfoOtherModality, updateFileInfoStatic, updateFileInfoStatic, updateFileTypeInfo, updateFileTypeInfo, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
-
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
-
Methods inherited from class java.awt.Dialog
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, show, toBack
-
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFront
-
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Use serialVersionUID for interoperability.- See Also:
- Constant Field Values
-
ICON_POLYGON
private static javax.swing.Icon ICON_POLYGON
DOCUMENT ME!
-
ICON_POLYLINE
private static javax.swing.Icon ICON_POLYLINE
DOCUMENT ME!
-
ICON_POINT
private static javax.swing.Icon ICON_POINT
DOCUMENT ME!
-
ICON_LINE
private static javax.swing.Icon ICON_LINE
DOCUMENT ME!
-
ICON_MEDICAL_FRAME
private static javax.swing.Icon ICON_MEDICAL_FRAME
DOCUMENT ME!
-
ICON_X_AXIS
private static javax.swing.Icon ICON_X_AXIS
DOCUMENT ME!
-
ICON_Y_AXIS
private static javax.swing.Icon ICON_Y_AXIS
DOCUMENT ME!
-
ICON_Z_AXIS
private static javax.swing.Icon ICON_Z_AXIS
DOCUMENT ME!
-
ICON_PROTRACTOR
private static javax.swing.Icon ICON_PROTRACTOR
DOCUMENT ME!
-
algoVOI
private AlgorithmVOIProps algoVOI
Algorithm for computing VOI statistics
-
applyButton
protected javax.swing.JButton applyButton
Applies bounding box/shading/name display and other UI changes to ModelImage
-
calcButton
protected javax.swing.JButton calcButton
Performs statistics calculations
-
helpButton
protected javax.swing.JButton helpButton
Displays Stats dialog help
-
checkboxOpacity
protected javax.swing.JCheckBox checkboxOpacity
Whether to display VOI with shading
-
checkboxBoundingBox
protected javax.swing.JCheckBox checkboxBoundingBox
Whether to display bounding box around VOI
-
checkboxSaveStats
protected javax.swing.JCheckBox checkboxSaveStats
Whether to save statistics to a file
-
checkboxIncludeForProcessing
protected javax.swing.JCheckBox checkboxIncludeForProcessing
Whether to include the selected VOI for statistics processing
-
checkboxVOIName
protected javax.swing.JCheckBox checkboxVOIName
Whether to display VOI name
-
colorButton
protected javax.swing.JButton colorButton
Allows VOI color to be selected
-
colorChooser
private ViewJColorChooser colorChooser
Internal dialog box for selecting VOI color
-
colorVOI
private java.awt.Color colorVOI
The current color of the selected VOI
-
contourTextArea
private javax.swing.JTextArea contourTextArea
Displays points and name of selected VOI or contour
-
currentOpacity
protected javax.swing.JLabel currentOpacity
Displays current opacity level in slider
-
followVOISelectionBox
protected javax.swing.JCheckBox followVOISelectionBox
DOCUMENT ME!
-
frameBorder
protected javax.swing.border.Border frameBorder
DOCUMENT ME!
-
frameFollowsSelection
private boolean frameFollowsSelection
DOCUMENT ME!
-
image
protected ModelImage image
Internal reference to the currently selected ModelImage
-
listPanel
protected JPanelStatisticsList listPanel
The list of statistics to calculate
-
opacitySlider
protected javax.swing.JSlider opacitySlider
The opacity slider for the selected VOI
-
popup
private JDialogVOIStats.VOITreePopup popup
DOCUMENT ME!
-
root
private javax.swing.tree.DefaultMutableTreeNode root
A reference in the voiTree to the currently selected image
-
seedValue
private short seedValue
The seed value last entered by the user
-
seedValueTF
protected javax.swing.JTextField seedValueTF
Watershed seed value
-
treeSelectionChange
private boolean treeSelectionChange
DOCUMENT ME!
-
updateTree
private boolean updateTree
-
voi
private VOI voi
The selected VOI when the VOIStats dialogue was created
-
voiContourPane
protected javax.swing.JScrollPane voiContourPane
DOCUMENT ME!
-
voiModel
private javax.swing.tree.DefaultTreeModel voiModel
The tree of VOIs, composed of an image with children VOIs
-
VOIName
protected javax.swing.JTextField VOIName
Name of the currently selected voi
-
VOIThicknessField
protected javax.swing.JTextField VOIThicknessField
Thickness of the currently selected voi
-
UIDfield
protected javax.swing.JTextField UIDfield
uid of the selected voi
-
voiTree
private javax.swing.JTree voiTree
The graphical representation of voiModel
-
voiTreePane
protected javax.swing.JScrollPane voiTreePane
Displays the orthoganal list of VOIs in the selected ModelImage
-
processList
private ViewVOIVector[] processList
List of VOI sets that will have statistics calculated
-
processListIndex
private int processListIndex
Current set of VOIs that are being processed
-
voiHandler
protected VOIHandlerInterface voiHandler
-
activeVolumeButton
private javax.swing.JRadioButton activeVolumeButton
-
allVolumesButton
private javax.swing.JRadioButton allVolumesButton
-
activeVolume
private int activeVolume
-
doAllVolumes
private boolean doAllVolumes
-
tDim
private int tDim
-
subsetAlgo
private AlgorithmSubset subsetAlgo
-
subsetImage
private ModelImage subsetImage
-
wholeImage
private VOI wholeImage
VOI used for whole image processing
-
rangeMaximum
private float rangeMaximum
DOCUMENT ME!
-
rangeMinimum
private float rangeMinimum
DOCUMENT ME!
-
rangeMaximumR
private float rangeMaximumR
-
rangeMinimumR
private float rangeMinimumR
-
rangeMaximumG
private float rangeMaximumG
-
rangeMinimumG
private float rangeMinimumG
-
rangeMaximumB
private float rangeMaximumB
-
rangeMinimumB
private float rangeMinimumB
-
excluder
private JPanelPixelExclusionSelector excluder
-
scriptRange
private JPanelPixelExclusionSelector.RangeType scriptRange
When running as a script, holds the pixel exclusion range.
-
-
Constructor Detail
-
JDialogVOIStats
public JDialogVOIStats()
Empty constructor needed for dynamic instantiation.
-
JDialogVOIStats
public JDialogVOIStats(VOIHandlerInterface theVoiHandler, ModelImage img, VOI _voi)
Constructor for the JDialogVOIStats.this class ought to listen for VOI updates, but we are having it implemented elsewhere.
- Parameters:
theParentFrame- DOCUMENT ME!img- DOCUMENT ME!_voi- DOCUMENT ME!
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent event)
Applies changes to VOI when "Apply" is pressed; closes when "Cancel" is pressed; and calculates statistics and outputs them to the message frame when "Calculate" is pressed. Also brings up a color chooser when the color button is pressed.- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener- Overrides:
actionPerformedin classJDialogBase- Parameters:
event- Event that triggers this function
-
getListPanel
public JPanelStatisticsList getListPanel()
-
callVOIAlgo
public void callVOIAlgo(ViewVOIVector voiProcessingSet, int processingMode, boolean inSepThread)
-
algorithmPerformed
public void algorithmPerformed(AlgorithmBase algorithm)
Description copied from interface:AlgorithmInterfaceCalled after an algorithm this listener is registered to exits (maybe successfully, maybe not). If the algorithm is run in a separate thread, this call will be made within that thread. If not, this call will be made from that same, shared thread.- Specified by:
algorithmPerformedin interfaceAlgorithmInterface- Parameters:
algorithm- the algorithm which has just completed
-
extendName
private java.lang.String extendName(java.lang.String name, VOI tempVOI, int contourNum, int processType)Changes voi name used for statistics retrieval based on processing mode
-
anotherCall
private void anotherCall()
-
focusLost
public void focusLost(java.awt.event.FocusEvent event)
Test the seed value and if appropriate, sets it.- Specified by:
focusLostin interfacejava.awt.event.FocusListener- Overrides:
focusLostin classJDialogBase- Parameters:
event- Event that triggered function.
-
itemStateChanged
public void itemStateChanged(java.awt.event.ItemEvent event)
Updates the VOI when the checkboxes for title, boundary, processing, and opacity are changed- Specified by:
itemStateChangedin interfacejava.awt.event.ItemListener- Overrides:
itemStateChangedin classJDialogBase- Parameters:
event- Event that cause the method to fire
-
selectionChanged
public void selectionChanged(UpdateVOIEvent newVOIselection)
responds to the volume of interest (VOI) change events.This method calls
updateVOIusing theUpdateVOIEventchangedVOI, and retrieves the runningInSeparateThread out of the current image's frame.- Specified by:
selectionChangedin interfaceUpdateVOISelectionListener- Parameters:
newVOIselection- DOCUMENT ME!- See Also:
UpdateVOIEvent,#updateVOI,ViewJFrameBase#getActiveImage
-
setVisible
public void setVisible(boolean visible)
DOCUMENT ME!- Overrides:
setVisiblein classJDialogBase- Parameters:
visible- DOCUMENT ME!
-
showColorChooser
public void showColorChooser()
DOCUMENT ME!
-
stateChanged
public void stateChanged(javax.swing.event.ChangeEvent e)
Sets values based on knob along slider. Changes the opacity of the VOI- Specified by:
stateChangedin interfacejavax.swing.event.ChangeListener- Parameters:
e- Event that triggered this function
-
updateVOIPanel
public void updateVOIPanel(VOI _voi, ModelImage img)
Updates the dialog based on the VOI passed in.- Parameters:
_voi- VOI whose properties we want to calculate.img- Image where voi is to be updated
-
printTree
private void printTree(javax.swing.tree.TreeModel model, java.lang.Object parent)
-
valueChanged
public void valueChanged(javax.swing.event.TreeSelectionEvent e)
Updates the ViewJFrameImage when a VOI/contour is selected.- Specified by:
valueChangedin interfacejavax.swing.event.TreeSelectionListener- Parameters:
e- TreeSelectionEvent
-
setVOIActive
private void setVOIActive(VOI v)
Internal method for setting all relevant parts of the GUI and the MIPAV interface to reflect the active VOI.
-
buildVOIContourPane
protected void buildVOIContourPane()
DOCUMENT ME!
-
buildVOITree
protected void buildVOITree()
DOCUMENT ME!
-
init
protected void init()
Sets up GUI components - buttons, checkboxes, sliders, etc.
-
updateContourPane
private void updateContourPane(VOIBase leadBase)
DOCUMENT ME!- Parameters:
leadBase- DOCUMENT ME!
-
updateTree
public void updateTree()
DOCUMENT ME!
-
setCheckboxBoundingBox
public void setCheckboxBoundingBox(boolean flag)
-
callAlgorithm
protected void callAlgorithm()
Description copied from class:JDialogScriptableBaseStarts the algorithm. Already exists in most algorithm dialogs. Should be called during scripted execution and regular operation.- Specified by:
callAlgorithmin classJDialogScriptableBase
-
setGUIFromParams
protected void setGUIFromParams()
Set the dialog GUI using the script parameters while running this algorithm as part of a script.- Specified by:
setGUIFromParamsin classJDialogScriptableBase
-
storeParamsFromGUI
protected void storeParamsFromGUI() throws ParserExceptionRecord the parameters just used to run this algorithm in a script.- Specified by:
storeParamsFromGUIin classJDialogScriptableBase- Throws:
ParserException- If there is a problem creating/recording the new parameters.
-
-