Package gov.nih.mipav.view.dialogs
Class JDialogPaintGrow
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.JDialogPaintGrow
- All Implemented Interfaces:
DialogDefaultsInterface,RegionGrowDialog,ActionListener,FocusListener,ItemListener,KeyListener,WindowListener,ImageObserver,MenuContainer,Serializable,EventListener,Accessible,ChangeListener,RootPaneContainer,WindowConstants
public class JDialogPaintGrow
extends JDialogBase
implements RegionGrowDialog, ChangeListener, KeyListener
Dialog to get the upper and lower bounds for the region grow used by the paint functions.
- Version:
- 1.0 Nov 9, 1999
- Author:
- Matthew J. McAuliffe, Ph.D.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class gov.nih.mipav.view.dialogs.JDialogBase
JDialogBase.CancelAction, JDialogBase.HelpAction, JDialogBase.OKActionNested classes/interfaces inherited from class javax.swing.JDialog
JDialog.AccessibleJDialogNested classes/interfaces inherited from class java.awt.Dialog
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityTypeNested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow, Window.TypeNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JCheckBoxDOCUMENT ME!protected JLabelDOCUMENT ME!private booleanDOCUMENT ME!private booleanDOCUMENT ME!private booleanDOCUMENT ME!private booleanDOCUMENT ME!protected booleanDOCUMENT ME!protected JCheckBoxDOCUMENT ME!protected booleanDOCUMENT ME!private FontDOCUMENT ME!protected FrameDOCUMENT ME!protected JCheckBoxDOCUMENT ME!protected JCheckBoxDOCUMENT ME!protected JSliderDOCUMENT ME!protected floatDOCUMENT ME!protected booleanDOCUMENT ME!protected booleanDOCUMENT ME!protected booleanDOCUMENT ME!protected booleanDOCUMENT ME!private intDOCUMENT ME!protected intDOCUMENT ME!protected intDOCUMENT ME!protected intDOCUMENT ME!protected intDOCUMENT ME!protected StringDOCUMENT ME!protected floatDOCUMENT ME!protected JLabelDOCUMENT ME!protected JLabelDOCUMENT ME!protected JLabelDOCUMENT ME!protected JLabelDOCUMENT ME!private booleanDOCUMENT ME!private booleanDOCUMENT ME!private booleanDOCUMENT ME!private booleanDOCUMENT ME!protected JSliderDOCUMENT ME!protected JSliderDOCUMENT ME!protected JTextFieldDOCUMENT ME!protected JTextFieldDOCUMENT ME!protected JTextFieldDOCUMENT ME!protected JTextFieldDOCUMENT ME!protected JSliderDOCUMENT ME!protected JSliderDOCUMENT ME!protected floatDOCUMENT ME!protected floatDOCUMENT ME!protected JLabelDOCUMENT ME!protected JTextFieldDOCUMENT ME!protected floatDOCUMENT ME!protected JLabelDOCUMENT ME!protected JLabelDOCUMENT ME!protected JLabelDOCUMENT ME!protected JLabelDOCUMENT ME!protected JLabelDOCUMENT ME!protected JLabelDOCUMENT ME!protected JLabelDOCUMENT ME!protected JLabelDOCUMENT ME!protected JLabelDOCUMENT ME!protected doubleDOCUMENT ME!protected JButtonDOCUMENT ME!protected JTextFieldDOCUMENT ME!protected floatDOCUMENT ME!protected JLabelDOCUMENT ME!protected JTextFieldDOCUMENT ME!protected doubleDOCUMENT ME!protected doubleDOCUMENT ME!protected doubleDOCUMENT ME!protected doubleDOCUMENT ME!protected floatDOCUMENT ME!protected floatDOCUMENT ME!protected floatDOCUMENT ME!protected JLabelDOCUMENT ME!protected JLabelDOCUMENT ME!protected JLabelDOCUMENT ME!protected JLabelDOCUMENT ME!protected JLabelDOCUMENT ME!protected JLabelDOCUMENT ME!protected JLabelDOCUMENT ME!protected JLabelDOCUMENT ME!protected JLabelDOCUMENT ME!protected floatDOCUMENT ME!protected doubleDOCUMENT ME!protected doubleDOCUMENT ME!protected doubleDOCUMENT ME!protected doubleDOCUMENT ME!protected floatDOCUMENT ME!protected Vector<PaintGrowListener> DOCUMENT ME!protected JTextFieldDOCUMENT ME!protected doubleDOCUMENT ME!protected doubleDOCUMENT ME!protected doubleDOCUMENT ME!protected doubleDOCUMENT ME!protected AlgorithmRegionGrowDOCUMENT ME!private static final longUse serialVersionUID for interoperability.protected booleanDOCUMENT ME!protected JCheckBoxDOCUMENT ME!private SurfacePaintSurfacePaint referenceprivate SurfacePaint_WMSurfacePaint referenceprivate JTabbedPaneDOCUMENT ME!protected JLabelDOCUMENT ME!protected JLabelDOCUMENT ME!protected JLabelDOCUMENT ME!protected JLabelDOCUMENT ME!private booleanDOCUMENT ME!private booleanDOCUMENT ME!private booleanDOCUMENT ME!private booleanDOCUMENT ME!protected JSliderDOCUMENT ME!protected JSliderDOCUMENT ME!protected JTextFieldDOCUMENT ME!protected JTextFieldDOCUMENT ME!protected JTextFieldDOCUMENT ME!protected JTextFieldDOCUMENT ME!protected JSliderDOCUMENT ME!protected JSliderDOCUMENT ME!protected booleanDOCUMENT ME!protected JCheckBoxDOCUMENT ME!protected booleanDOCUMENT ME!protected JCheckBoxDOCUMENT ME!Fields inherited from class gov.nih.mipav.view.dialogs.JDialogBase
applyButton, bar, cancelButton, cancelFlag, closeButton, HELP, helpButton, mainDialogPanel, NEW, OKButton, parentFrame, progressBar, REPLACE, runInSeparateThread, runningScriptFlag, runQuiet, serif12, serif12B, voiManagerFields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabledFields inherited from class java.awt.Dialog
DEFAULT_MODALITY_TYPEFields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHFields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE -
Constructor Summary
ConstructorsConstructorDescriptionJDialogPaintGrow(Frame theParentFrame, SurfacePaint surfacePaint, Vector<PaintGrowListener> paintListeners) Creates new dialog and sets up GUI components.JDialogPaintGrow(Frame theParentFrame, SurfacePaint_WM surfacePaint, Vector<PaintGrowListener> paintListeners) Creates new dialog and sets up GUI components.JDialogPaintGrow(Frame theParentFrame, Frame attachedFrame, Vector<PaintGrowListener> paintListeners) Creates new dialog and sets up GUI components.JDialogPaintGrow(Frame theParentFrame, Vector<PaintGrowListener> paintListeners) Creates new dialog and sets up GUI components.JDialogPaintGrow(Frame theParentFrame, Vector<PaintGrowListener> paintListeners, boolean isVisible) Creates new dialog and sets up GUI components.JDialogPaintGrow(Frame theParentFrame, Vector<PaintGrowListener> paintListeners, boolean setRadioBoth, String leadString) Creates new dialog and sets up GUI components. -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent event) Sets parameters in PaintGrowListener when Apply is pressed.booleanDOCUMENT ME!private JPanelDOCUMENT ME!private JPanelDOCUMENT ME!voidUnchanged.booleanAccessor that returns displayFuzzy.floatAccessor that returns the fuzzy threshold.floatAccessor to the lower bound slider.floatAccessor to the lower bound blue slider.floatAccessor to the lower bound green slider.floatAccessor to the lower bound red slider.intAccessor that returns the maximum distance from the seed point to a point in the object.intAccessor that returns the maximum size of the object.floatAccessor to the upper bound slider.floatAccessor to the upper bound blue slider.floatAccessor to the upper bound green slider.floatAccessor to the upper bound red slider.booleanAccessor that returns useVOI.booleanAccessor that tells if the thresholds vary with region growth.protected voidinit()Initializes GUI components.voidDOCUMENT ME!voidPlaceholder required by KeyListener.voidPlaceholder required by KeyListener.voidnotifyPaintListeners(boolean backup) Tells images which are watching the paint region grow to update themselves.voidnotifyPaintListeners(boolean isRegionGrow, boolean backup, BitSet paintMask) Tells images which are watching the paint region grow to update themselves.voidSets the reference to this dialog for all of the images listening to it to null.voidsetPositionText(String posString) Sets text in positionPanel.voidsetRegionGrowAlgo(AlgorithmRegionGrow regionGrowAlgo) DOCUMENT ME!voidSets values based on knob along slider.voidwindowClosing(WindowEvent event) DOCUMENT ME!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, itemStateChanged, loadDefaults, loadDefaults, makeImageName, makeString, openNewFrame, saveDefaults, saveDefaults, setLeftHandSystem, setQuietRunning, setScriptRunning, setSeparateThread, setVisible, setVisible, setVisibleMenuBar, setVisibleStandard, setVOIManager, setWCSystem, testParameter, testParameterMin, updateFFTFileInfo, updateFileInfo, updateFileInfoOtherModality, updateFileInfoStatic, updateFileInfoStatic, updateFileTypeInfo, updateFileTypeInfo, windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowIconified, windowOpenedMethods 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, updateMethods inherited from class java.awt.Dialog
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, show, toBackMethods 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, toFrontMethods 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, validateTreeMethods 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 Details
-
serialVersionUID
private static final long serialVersionUIDUse serialVersionUID for interoperability.- See Also:
-
constrainBoundsCheckbox
DOCUMENT ME! -
currentFuzzy
DOCUMENT ME! -
displayFuzzy
protected boolean displayFuzzyDOCUMENT ME! -
distanceCheckbox
DOCUMENT ME! -
enableVariableCheckbox
protected boolean enableVariableCheckboxDOCUMENT ME! -
frame
DOCUMENT ME! -
fuzzyCheckbox
DOCUMENT ME! -
fuzzyImageCheckbox
DOCUMENT ME! -
fuzzySlider
DOCUMENT ME! -
fuzzyThreshold
protected float fuzzyThresholdDOCUMENT ME! -
haveBlue
protected boolean haveBlueDOCUMENT ME! -
haveColor
protected boolean haveColorDOCUMENT ME! -
haveGreen
protected boolean haveGreenDOCUMENT ME! -
haveRed
protected boolean haveRedDOCUMENT ME! -
initialDelta
protected int initialDeltaDOCUMENT ME! -
initialDeltaB
protected int initialDeltaBDOCUMENT ME! -
initialDeltaG
protected int initialDeltaGDOCUMENT ME! -
initialDeltaR
protected int initialDeltaRDOCUMENT ME! -
leadString
DOCUMENT ME! -
less
protected float lessDOCUMENT ME! -
more
protected float moreDOCUMENT ME! -
lowerMid
DOCUMENT ME! -
lowerMidB
DOCUMENT ME! -
lowerMidG
DOCUMENT ME! -
lowerMidR
DOCUMENT ME! -
lowSlider
DOCUMENT ME! -
lowSliderB
DOCUMENT ME! -
lowSliderField
DOCUMENT ME! -
lowSliderFieldB
DOCUMENT ME! -
lowSliderFieldG
DOCUMENT ME! -
lowSliderFieldR
DOCUMENT ME! -
lowSliderG
DOCUMENT ME! -
lowSliderR
DOCUMENT ME! -
max
protected float maxDOCUMENT ME! -
maxB
protected float maxBDOCUMENT ME! -
maxDistLabel
DOCUMENT ME! -
maxDistTextF
DOCUMENT ME! -
maxG
protected float maxGDOCUMENT ME! -
maximumFuzzy
DOCUMENT ME! -
maximumL
DOCUMENT ME! -
maximumLB
DOCUMENT ME! -
maximumLG
DOCUMENT ME! -
maximumLR
DOCUMENT ME! -
maximumU
DOCUMENT ME! -
maximumUB
DOCUMENT ME! -
maximumUG
DOCUMENT ME! -
maximumUR
DOCUMENT ME! -
maximumValue
protected double maximumValueDOCUMENT ME! -
maximumValueButton
DOCUMENT ME! -
maximumValueField
DOCUMENT ME! -
maxR
protected float maxRDOCUMENT ME! -
maxSizeLabel
DOCUMENT ME! -
maxSizeTextF
DOCUMENT ME! -
maxValue
protected double maxValueDOCUMENT ME! -
minValue
protected double minValueDOCUMENT ME! -
maxValueB
protected double maxValueBDOCUMENT ME! -
minValueB
protected double minValueBDOCUMENT ME! -
maxValueG
protected double maxValueGDOCUMENT ME! -
minValueG
protected double minValueGDOCUMENT ME! -
maxValueR
protected double maxValueRDOCUMENT ME! -
minValueR
protected double minValueRDOCUMENT ME! -
min
protected float minDOCUMENT ME! -
minB
protected float minBDOCUMENT ME! -
minG
protected float minGDOCUMENT ME! -
minimumFuzzy
DOCUMENT ME! -
minimumL
DOCUMENT ME! -
minimumLB
DOCUMENT ME! -
minimumLG
DOCUMENT ME! -
minimumLR
DOCUMENT ME! -
minimumU
DOCUMENT ME! -
minimumUB
DOCUMENT ME! -
minimumUG
DOCUMENT ME! -
minimumUR
DOCUMENT ME! -
minR
protected float minRDOCUMENT ME! -
paintGrowListeners
DOCUMENT ME! -
posTextF
DOCUMENT ME! -
range
protected double rangeDOCUMENT ME! -
rangeB
protected double rangeBDOCUMENT ME! -
rangeG
protected double rangeGDOCUMENT ME! -
rangeR
protected double rangeRDOCUMENT ME! -
regionGrowAlgo
DOCUMENT ME! -
setRadioBoth
protected boolean setRadioBothDOCUMENT ME! -
sizeCheckbox
DOCUMENT ME! -
upperMid
DOCUMENT ME! -
upperMidB
DOCUMENT ME! -
upperMidG
DOCUMENT ME! -
upperMidR
DOCUMENT ME! -
upSlider
DOCUMENT ME! -
upSliderB
DOCUMENT ME! -
upSliderField
DOCUMENT ME! -
upSliderFieldB
DOCUMENT ME! -
upSliderFieldG
DOCUMENT ME! -
upSliderFieldR
DOCUMENT ME! -
upSliderG
DOCUMENT ME! -
upSliderR
DOCUMENT ME! -
useVOI
protected boolean useVOIDOCUMENT ME! -
variableDeltasCheckbox
DOCUMENT ME! -
variableThresholds
protected boolean variableThresholdsDOCUMENT ME! -
voiCheckbox
DOCUMENT ME! -
disableSliders
private boolean disableSlidersDOCUMENT ME! -
disableSlidersB
private boolean disableSlidersBDOCUMENT ME! -
disableSlidersG
private boolean disableSlidersGDOCUMENT ME! -
disableSlidersR
private boolean disableSlidersRDOCUMENT ME! -
font12B
DOCUMENT ME! -
imageType
private int imageTypeDOCUMENT ME! -
lowSetFromField
private boolean lowSetFromFieldDOCUMENT ME! -
lowSetFromFieldB
private boolean lowSetFromFieldBDOCUMENT ME! -
lowSetFromFieldG
private boolean lowSetFromFieldGDOCUMENT ME! -
lowSetFromFieldR
private boolean lowSetFromFieldRDOCUMENT ME! -
tabbedPane
DOCUMENT ME! -
upSetFromField
private boolean upSetFromFieldDOCUMENT ME! -
upSetFromFieldB
private boolean upSetFromFieldBDOCUMENT ME! -
upSetFromFieldG
private boolean upSetFromFieldGDOCUMENT ME! -
upSetFromFieldR
private boolean upSetFromFieldRDOCUMENT ME! -
surfacePaint
SurfacePaint reference -
surfacePaint_WM
SurfacePaint reference
-
-
Constructor Details
-
JDialogPaintGrow
Creates new dialog and sets up GUI components.- Parameters:
theParentFrame- Parent frame.paintListeners- DOCUMENT ME!
-
JDialogPaintGrow
public JDialogPaintGrow(Frame theParentFrame, Vector<PaintGrowListener> paintListeners, boolean isVisible) Creates new dialog and sets up GUI components.- Parameters:
theParentFrame- Parent frame.paintListeners- DOCUMENT ME!isVisible- Dialog visible or not.
-
JDialogPaintGrow
public JDialogPaintGrow(Frame theParentFrame, Frame attachedFrame, Vector<PaintGrowListener> paintListeners) Creates new dialog and sets up GUI components.- Parameters:
theParentFrame- Parent frame (the frame with the component image this dialog should perform region grows on).attachedFrame- the frame this dialog should be attached topaintListeners- DOCUMENT ME!
-
JDialogPaintGrow
public JDialogPaintGrow(Frame theParentFrame, Vector<PaintGrowListener> paintListeners, boolean setRadioBoth, String leadString) Creates new dialog and sets up GUI components.- Parameters:
theParentFrame- Parent frame.paintListeners- DOCUMENT ME!setRadioBoth- enabled the both button option on frameleadString- DOCUMENT ME!
-
JDialogPaintGrow
public JDialogPaintGrow(Frame theParentFrame, SurfacePaint surfacePaint, Vector<PaintGrowListener> paintListeners) Creates new dialog and sets up GUI components.- Parameters:
theParentFrame- Parent frame.surfacePaint- for Painting on a surfacepaintListeners- DOCUMENT ME!
-
JDialogPaintGrow
public JDialogPaintGrow(Frame theParentFrame, SurfacePaint_WM surfacePaint, Vector<PaintGrowListener> paintListeners) Creates new dialog and sets up GUI components.- Parameters:
theParentFrame- Parent frame.surfacePaint- for Painting on a surfacepaintListeners- DOCUMENT ME!
-
-
Method Details
-
actionPerformed
Sets parameters in PaintGrowListener when Apply is pressed. Closes dialog box in response to both Apply and Cancel buttons.- Specified by:
actionPerformedin interfaceActionListener- Overrides:
actionPerformedin classJDialogBase- Parameters:
event- Event that triggers function.
-
boundsConstrained
public boolean boundsConstrained()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getDisplayFuzzy
public boolean getDisplayFuzzy()Accessor that returns displayFuzzy.- Specified by:
getDisplayFuzzyin interfaceRegionGrowDialog- Returns:
- displayFuzzy
-
getFuzzyThreshold
public float getFuzzyThreshold()Accessor that returns the fuzzy threshold.- Specified by:
getFuzzyThresholdin interfaceRegionGrowDialog- Returns:
- fuzzy threshold
-
getLowerBound
public float getLowerBound()Accessor to the lower bound slider.- Specified by:
getLowerBoundin interfaceRegionGrowDialog- Returns:
- The value to be subtracted to the seed intensity the defines the lower intensity value that the region can grow into.
-
getLowerBoundB
public float getLowerBoundB()Accessor to the lower bound blue slider.- Specified by:
getLowerBoundBin interfaceRegionGrowDialog- Returns:
- The value to be subtracted to the seed blue intensity the defines the lower blue intensity value that the region can grow into.
-
getLowerBoundG
public float getLowerBoundG()Accessor to the lower bound green slider.- Specified by:
getLowerBoundGin interfaceRegionGrowDialog- Returns:
- The value to be subtracted to the seed green intensity the defines the lower green intensity value that the region can grow into.
-
getLowerBoundR
public float getLowerBoundR()Accessor to the lower bound red slider.- Specified by:
getLowerBoundRin interfaceRegionGrowDialog- Returns:
- The value to be subtracted to the seed red intensity the defines the lower red intensity value that the region can grow into.
-
getMaxDistance
public int getMaxDistance()Accessor that returns the maximum distance from the seed point to a point in the object.- Specified by:
getMaxDistancein interfaceRegionGrowDialog- Returns:
- The maximum distance from the seed point to the object in units of the image.
-
getMaxSize
public int getMaxSize()Accessor that returns the maximum size of the object.- Specified by:
getMaxSizein interfaceRegionGrowDialog- Returns:
- The maximum size of the object in units of the image.
-
getUpperBound
public float getUpperBound()Accessor to the upper bound slider.- Specified by:
getUpperBoundin interfaceRegionGrowDialog- Returns:
- The value to be added to the seed intensity the defines the upper intensity value that the region can grow into.
-
getUpperBoundB
public float getUpperBoundB()Accessor to the upper bound blue slider.- Specified by:
getUpperBoundBin interfaceRegionGrowDialog- Returns:
- The value to be added to the seed blue intensity the defines the upper blue intensity value that the region can grow into.
-
getUpperBoundG
public float getUpperBoundG()Accessor to the upper bound green slider.- Specified by:
getUpperBoundGin interfaceRegionGrowDialog- Returns:
- The value to be added to the seed green intensity the defines the upper green intensity value that the region can grow into.
-
getUpperBoundR
public float getUpperBoundR()Accessor to the upper bound red slider.- Specified by:
getUpperBoundRin interfaceRegionGrowDialog- Returns:
- The value to be added to the seed red intensity the defines the upper red intensity value that the region can grow into.
-
getUseVOI
public boolean getUseVOI()Accessor that returns useVOI.- Specified by:
getUseVOIin interfaceRegionGrowDialog- Returns:
- useVOI
-
getVariableThresholds
public boolean getVariableThresholds()Accessor that tells if the thresholds vary with region growth.- Specified by:
getVariableThresholdsin interfaceRegionGrowDialog- Returns:
- variableThresholds
-
keyPressed
DOCUMENT ME!- Specified by:
keyPressedin interfaceKeyListener- Parameters:
e- DOCUMENT ME!
-
keyReleased
Placeholder required by KeyListener. Does nothing.- Specified by:
keyReleasedin interfaceKeyListener- Parameters:
e- KeyEvent
-
keyTyped
Placeholder required by KeyListener. Does nothing.- Specified by:
keyTypedin interfaceKeyListener- Parameters:
e- KeyEvent
-
notifyPaintListeners
public void notifyPaintListeners(boolean backup) Tells images which are watching the paint region grow to update themselves.- Parameters:
backup- whether to backup the paint region before updating it (to allow for undos)
-
notifyPaintListeners
Tells images which are watching the paint region grow to update themselves.- Specified by:
notifyPaintListenersin interfaceRegionGrowDialog- Parameters:
isRegionGrow- whether the update was caused by a region grow or by something else (eg - eraseall)backup- whether to backup the paint region before updating it (to allow for undos).paintMask- the paint mask to tell the listeners about.
-
resetDialogs
public void resetDialogs()Sets the reference to this dialog for all of the images listening to it to null.- Specified by:
resetDialogsin interfaceRegionGrowDialog
-
setPositionText
Sets text in positionPanel.- Specified by:
setPositionTextin interfaceRegionGrowDialog- Parameters:
posString- String to put in text field.
-
setRegionGrowAlgo
DOCUMENT ME!- Specified by:
setRegionGrowAlgoin interfaceRegionGrowDialog- Parameters:
regionGrowAlgo- DOCUMENT ME!
-
stateChanged
Sets values based on knob along slider.- Specified by:
stateChangedin interfaceChangeListener- Parameters:
e- Event that triggered this function
-
windowClosing
DOCUMENT ME!- Specified by:
windowClosingin interfaceWindowListener- Overrides:
windowClosingin classJDialogBase- Parameters:
event- Event that triggered this method.
-
init
protected void init()Initializes GUI components. -
buildFuzzyPanel
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
buildStaticPanel
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
focusLost
Description copied from class:JDialogBaseUnchanged.- Specified by:
focusLostin interfaceFocusListener- Overrides:
focusLostin classJDialogBase- Parameters:
e- FocusEvent
-