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
,java.awt.event.ActionListener
,java.awt.event.FocusListener
,java.awt.event.ItemListener
,java.awt.event.KeyListener
,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.RootPaneContainer
,javax.swing.WindowConstants
public class JDialogPaintGrow extends JDialogBase implements RegionGrowDialog, javax.swing.event.ChangeListener, java.awt.event.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:
PaintGrowListener
, Serialized Form
-
-
Nested Class Summary
-
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 protected javax.swing.JCheckBox
constrainBoundsCheckbox
DOCUMENT ME!protected javax.swing.JLabel
currentFuzzy
DOCUMENT ME!private boolean
disableSliders
DOCUMENT ME!private boolean
disableSlidersB
DOCUMENT ME!private boolean
disableSlidersG
DOCUMENT ME!private boolean
disableSlidersR
DOCUMENT ME!protected boolean
displayFuzzy
DOCUMENT ME!protected javax.swing.JCheckBox
distanceCheckbox
DOCUMENT ME!protected boolean
enableVariableCheckbox
DOCUMENT ME!private java.awt.Font
font12B
DOCUMENT ME!protected java.awt.Frame
frame
DOCUMENT ME!protected javax.swing.JCheckBox
fuzzyCheckbox
DOCUMENT ME!protected javax.swing.JCheckBox
fuzzyImageCheckbox
DOCUMENT ME!protected javax.swing.JSlider
fuzzySlider
DOCUMENT ME!protected float
fuzzyThreshold
DOCUMENT ME!protected boolean
haveBlue
DOCUMENT ME!protected boolean
haveColor
DOCUMENT ME!protected boolean
haveGreen
DOCUMENT ME!protected boolean
haveRed
DOCUMENT ME!private int
imageType
DOCUMENT ME!protected int
initialDelta
DOCUMENT ME!protected int
initialDeltaB
DOCUMENT ME!protected int
initialDeltaG
DOCUMENT ME!protected int
initialDeltaR
DOCUMENT ME!protected java.lang.String
leadString
DOCUMENT ME!protected float
less
DOCUMENT ME!protected javax.swing.JLabel
lowerMid
DOCUMENT ME!protected javax.swing.JLabel
lowerMidB
DOCUMENT ME!protected javax.swing.JLabel
lowerMidG
DOCUMENT ME!protected javax.swing.JLabel
lowerMidR
DOCUMENT ME!private boolean
lowSetFromField
DOCUMENT ME!private boolean
lowSetFromFieldB
DOCUMENT ME!private boolean
lowSetFromFieldG
DOCUMENT ME!private boolean
lowSetFromFieldR
DOCUMENT ME!protected javax.swing.JSlider
lowSlider
DOCUMENT ME!protected javax.swing.JSlider
lowSliderB
DOCUMENT ME!protected javax.swing.JTextField
lowSliderField
DOCUMENT ME!protected javax.swing.JTextField
lowSliderFieldB
DOCUMENT ME!protected javax.swing.JTextField
lowSliderFieldG
DOCUMENT ME!protected javax.swing.JTextField
lowSliderFieldR
DOCUMENT ME!protected javax.swing.JSlider
lowSliderG
DOCUMENT ME!protected javax.swing.JSlider
lowSliderR
DOCUMENT ME!protected float
max
DOCUMENT ME!protected float
maxB
DOCUMENT ME!protected javax.swing.JLabel
maxDistLabel
DOCUMENT ME!protected javax.swing.JTextField
maxDistTextF
DOCUMENT ME!protected float
maxG
DOCUMENT ME!protected javax.swing.JLabel
maximumFuzzy
DOCUMENT ME!protected javax.swing.JLabel
maximumL
DOCUMENT ME!protected javax.swing.JLabel
maximumLB
DOCUMENT ME!protected javax.swing.JLabel
maximumLG
DOCUMENT ME!protected javax.swing.JLabel
maximumLR
DOCUMENT ME!protected javax.swing.JLabel
maximumU
DOCUMENT ME!protected javax.swing.JLabel
maximumUB
DOCUMENT ME!protected javax.swing.JLabel
maximumUG
DOCUMENT ME!protected javax.swing.JLabel
maximumUR
DOCUMENT ME!protected double
maximumValue
DOCUMENT ME!protected javax.swing.JButton
maximumValueButton
DOCUMENT ME!protected javax.swing.JTextField
maximumValueField
DOCUMENT ME!protected float
maxR
DOCUMENT ME!protected javax.swing.JLabel
maxSizeLabel
DOCUMENT ME!protected javax.swing.JTextField
maxSizeTextF
DOCUMENT ME!protected double
maxValue
DOCUMENT ME!protected double
maxValueB
DOCUMENT ME!protected double
maxValueG
DOCUMENT ME!protected double
maxValueR
DOCUMENT ME!protected float
min
DOCUMENT ME!protected float
minB
DOCUMENT ME!protected float
minG
DOCUMENT ME!protected javax.swing.JLabel
minimumFuzzy
DOCUMENT ME!protected javax.swing.JLabel
minimumL
DOCUMENT ME!protected javax.swing.JLabel
minimumLB
DOCUMENT ME!protected javax.swing.JLabel
minimumLG
DOCUMENT ME!protected javax.swing.JLabel
minimumLR
DOCUMENT ME!protected javax.swing.JLabel
minimumU
DOCUMENT ME!protected javax.swing.JLabel
minimumUB
DOCUMENT ME!protected javax.swing.JLabel
minimumUG
DOCUMENT ME!protected javax.swing.JLabel
minimumUR
DOCUMENT ME!protected float
minR
DOCUMENT ME!protected double
minValue
DOCUMENT ME!protected double
minValueB
DOCUMENT ME!protected double
minValueG
DOCUMENT ME!protected double
minValueR
DOCUMENT ME!protected float
more
DOCUMENT ME!protected java.util.Vector<PaintGrowListener>
paintGrowListeners
DOCUMENT ME!protected javax.swing.JTextField
posTextF
DOCUMENT ME!protected double
range
DOCUMENT ME!protected double
rangeB
DOCUMENT ME!protected double
rangeG
DOCUMENT ME!protected double
rangeR
DOCUMENT ME!protected AlgorithmRegionGrow
regionGrowAlgo
DOCUMENT ME!private static long
serialVersionUID
Use serialVersionUID for interoperability.protected boolean
setRadioBoth
DOCUMENT ME!protected javax.swing.JCheckBox
sizeCheckbox
DOCUMENT ME!private SurfacePaint
surfacePaint
SurfacePaint referenceprivate SurfacePaint_WM
surfacePaint_WM
SurfacePaint referenceprivate javax.swing.JTabbedPane
tabbedPane
DOCUMENT ME!protected javax.swing.JLabel
upperMid
DOCUMENT ME!protected javax.swing.JLabel
upperMidB
DOCUMENT ME!protected javax.swing.JLabel
upperMidG
DOCUMENT ME!protected javax.swing.JLabel
upperMidR
DOCUMENT ME!private boolean
upSetFromField
DOCUMENT ME!private boolean
upSetFromFieldB
DOCUMENT ME!private boolean
upSetFromFieldG
DOCUMENT ME!private boolean
upSetFromFieldR
DOCUMENT ME!protected javax.swing.JSlider
upSlider
DOCUMENT ME!protected javax.swing.JSlider
upSliderB
DOCUMENT ME!protected javax.swing.JTextField
upSliderField
DOCUMENT ME!protected javax.swing.JTextField
upSliderFieldB
DOCUMENT ME!protected javax.swing.JTextField
upSliderFieldG
DOCUMENT ME!protected javax.swing.JTextField
upSliderFieldR
DOCUMENT ME!protected javax.swing.JSlider
upSliderG
DOCUMENT ME!protected javax.swing.JSlider
upSliderR
DOCUMENT ME!protected boolean
useVOI
DOCUMENT ME!protected javax.swing.JCheckBox
variableDeltasCheckbox
DOCUMENT ME!protected boolean
variableThresholds
DOCUMENT ME!protected javax.swing.JCheckBox
voiCheckbox
DOCUMENT 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, 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 JDialogPaintGrow(java.awt.Frame theParentFrame, SurfacePaint surfacePaint, java.util.Vector<PaintGrowListener> paintListeners)
Creates new dialog and sets up GUI components.JDialogPaintGrow(java.awt.Frame theParentFrame, SurfacePaint_WM surfacePaint, java.util.Vector<PaintGrowListener> paintListeners)
Creates new dialog and sets up GUI components.JDialogPaintGrow(java.awt.Frame theParentFrame, java.awt.Frame attachedFrame, java.util.Vector<PaintGrowListener> paintListeners)
Creates new dialog and sets up GUI components.JDialogPaintGrow(java.awt.Frame theParentFrame, java.util.Vector<PaintGrowListener> paintListeners)
Creates new dialog and sets up GUI components.JDialogPaintGrow(java.awt.Frame theParentFrame, java.util.Vector<PaintGrowListener> paintListeners, boolean isVisible)
Creates new dialog and sets up GUI components.JDialogPaintGrow(java.awt.Frame theParentFrame, java.util.Vector<PaintGrowListener> paintListeners, boolean setRadioBoth, java.lang.String leadString)
Creates new dialog and sets up GUI components.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent event)
Sets parameters in PaintGrowListener when Apply is pressed.boolean
boundsConstrained()
DOCUMENT ME!private javax.swing.JPanel
buildFuzzyPanel()
DOCUMENT ME!private javax.swing.JPanel
buildStaticPanel()
DOCUMENT ME!void
focusLost(java.awt.event.FocusEvent e)
Unchanged.boolean
getDisplayFuzzy()
Accessor that returns displayFuzzy.float
getFuzzyThreshold()
Accessor that returns the fuzzy threshold.float
getLowerBound()
Accessor to the lower bound slider.float
getLowerBoundB()
Accessor to the lower bound blue slider.float
getLowerBoundG()
Accessor to the lower bound green slider.float
getLowerBoundR()
Accessor to the lower bound red slider.int
getMaxDistance()
Accessor that returns the maximum distance from the seed point to a point in the object.int
getMaxSize()
Accessor that returns the maximum size of the object.float
getUpperBound()
Accessor to the upper bound slider.float
getUpperBoundB()
Accessor to the upper bound blue slider.float
getUpperBoundG()
Accessor to the upper bound green slider.float
getUpperBoundR()
Accessor to the upper bound red slider.boolean
getUseVOI()
Accessor that returns useVOI.boolean
getVariableThresholds()
Accessor that tells if the thresholds vary with region growth.protected void
init()
Initializes GUI components.void
keyPressed(java.awt.event.KeyEvent e)
DOCUMENT ME!void
keyReleased(java.awt.event.KeyEvent e)
Placeholder required by KeyListener.void
keyTyped(java.awt.event.KeyEvent e)
Placeholder required by KeyListener.void
notifyPaintListeners(boolean backup)
Tells images which are watching the paint region grow to update themselves.void
notifyPaintListeners(boolean isRegionGrow, boolean backup, java.util.BitSet paintMask)
Tells images which are watching the paint region grow to update themselves.void
resetDialogs()
Sets the reference to this dialog for all of the images listening to it to null.void
setPositionText(java.lang.String posString)
Sets text in positionPanel.void
setRegionGrowAlgo(AlgorithmRegionGrow regionGrowAlgo)
DOCUMENT ME!void
stateChanged(javax.swing.event.ChangeEvent e)
Sets values based on knob along slider.void
windowClosing(java.awt.event.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, 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
-
constrainBoundsCheckbox
protected javax.swing.JCheckBox constrainBoundsCheckbox
DOCUMENT ME!
-
currentFuzzy
protected javax.swing.JLabel currentFuzzy
DOCUMENT ME!
-
displayFuzzy
protected boolean displayFuzzy
DOCUMENT ME!
-
distanceCheckbox
protected javax.swing.JCheckBox distanceCheckbox
DOCUMENT ME!
-
enableVariableCheckbox
protected boolean enableVariableCheckbox
DOCUMENT ME!
-
frame
protected java.awt.Frame frame
DOCUMENT ME!
-
fuzzyCheckbox
protected javax.swing.JCheckBox fuzzyCheckbox
DOCUMENT ME!
-
fuzzyImageCheckbox
protected javax.swing.JCheckBox fuzzyImageCheckbox
DOCUMENT ME!
-
fuzzySlider
protected javax.swing.JSlider fuzzySlider
DOCUMENT ME!
-
fuzzyThreshold
protected float fuzzyThreshold
DOCUMENT ME!
-
haveBlue
protected boolean haveBlue
DOCUMENT ME!
-
haveColor
protected boolean haveColor
DOCUMENT ME!
-
haveGreen
protected boolean haveGreen
DOCUMENT ME!
-
haveRed
protected boolean haveRed
DOCUMENT ME!
-
initialDelta
protected int initialDelta
DOCUMENT ME!
-
initialDeltaB
protected int initialDeltaB
DOCUMENT ME!
-
initialDeltaG
protected int initialDeltaG
DOCUMENT ME!
-
initialDeltaR
protected int initialDeltaR
DOCUMENT ME!
-
leadString
protected java.lang.String leadString
DOCUMENT ME!
-
less
protected float less
DOCUMENT ME!
-
more
protected float more
DOCUMENT ME!
-
lowerMid
protected javax.swing.JLabel lowerMid
DOCUMENT ME!
-
lowerMidB
protected javax.swing.JLabel lowerMidB
DOCUMENT ME!
-
lowerMidG
protected javax.swing.JLabel lowerMidG
DOCUMENT ME!
-
lowerMidR
protected javax.swing.JLabel lowerMidR
DOCUMENT ME!
-
lowSlider
protected javax.swing.JSlider lowSlider
DOCUMENT ME!
-
lowSliderB
protected javax.swing.JSlider lowSliderB
DOCUMENT ME!
-
lowSliderField
protected javax.swing.JTextField lowSliderField
DOCUMENT ME!
-
lowSliderFieldB
protected javax.swing.JTextField lowSliderFieldB
DOCUMENT ME!
-
lowSliderFieldG
protected javax.swing.JTextField lowSliderFieldG
DOCUMENT ME!
-
lowSliderFieldR
protected javax.swing.JTextField lowSliderFieldR
DOCUMENT ME!
-
lowSliderG
protected javax.swing.JSlider lowSliderG
DOCUMENT ME!
-
lowSliderR
protected javax.swing.JSlider lowSliderR
DOCUMENT ME!
-
max
protected float max
DOCUMENT ME!
-
maxB
protected float maxB
DOCUMENT ME!
-
maxDistLabel
protected javax.swing.JLabel maxDistLabel
DOCUMENT ME!
-
maxDistTextF
protected javax.swing.JTextField maxDistTextF
DOCUMENT ME!
-
maxG
protected float maxG
DOCUMENT ME!
-
maximumFuzzy
protected javax.swing.JLabel maximumFuzzy
DOCUMENT ME!
-
maximumL
protected javax.swing.JLabel maximumL
DOCUMENT ME!
-
maximumLB
protected javax.swing.JLabel maximumLB
DOCUMENT ME!
-
maximumLG
protected javax.swing.JLabel maximumLG
DOCUMENT ME!
-
maximumLR
protected javax.swing.JLabel maximumLR
DOCUMENT ME!
-
maximumU
protected javax.swing.JLabel maximumU
DOCUMENT ME!
-
maximumUB
protected javax.swing.JLabel maximumUB
DOCUMENT ME!
-
maximumUG
protected javax.swing.JLabel maximumUG
DOCUMENT ME!
-
maximumUR
protected javax.swing.JLabel maximumUR
DOCUMENT ME!
-
maximumValue
protected double maximumValue
DOCUMENT ME!
-
maximumValueButton
protected javax.swing.JButton maximumValueButton
DOCUMENT ME!
-
maximumValueField
protected javax.swing.JTextField maximumValueField
DOCUMENT ME!
-
maxR
protected float maxR
DOCUMENT ME!
-
maxSizeLabel
protected javax.swing.JLabel maxSizeLabel
DOCUMENT ME!
-
maxSizeTextF
protected javax.swing.JTextField maxSizeTextF
DOCUMENT ME!
-
maxValue
protected double maxValue
DOCUMENT ME!
-
minValue
protected double minValue
DOCUMENT ME!
-
maxValueB
protected double maxValueB
DOCUMENT ME!
-
minValueB
protected double minValueB
DOCUMENT ME!
-
maxValueG
protected double maxValueG
DOCUMENT ME!
-
minValueG
protected double minValueG
DOCUMENT ME!
-
maxValueR
protected double maxValueR
DOCUMENT ME!
-
minValueR
protected double minValueR
DOCUMENT ME!
-
min
protected float min
DOCUMENT ME!
-
minB
protected float minB
DOCUMENT ME!
-
minG
protected float minG
DOCUMENT ME!
-
minimumFuzzy
protected javax.swing.JLabel minimumFuzzy
DOCUMENT ME!
-
minimumL
protected javax.swing.JLabel minimumL
DOCUMENT ME!
-
minimumLB
protected javax.swing.JLabel minimumLB
DOCUMENT ME!
-
minimumLG
protected javax.swing.JLabel minimumLG
DOCUMENT ME!
-
minimumLR
protected javax.swing.JLabel minimumLR
DOCUMENT ME!
-
minimumU
protected javax.swing.JLabel minimumU
DOCUMENT ME!
-
minimumUB
protected javax.swing.JLabel minimumUB
DOCUMENT ME!
-
minimumUG
protected javax.swing.JLabel minimumUG
DOCUMENT ME!
-
minimumUR
protected javax.swing.JLabel minimumUR
DOCUMENT ME!
-
minR
protected float minR
DOCUMENT ME!
-
paintGrowListeners
protected java.util.Vector<PaintGrowListener> paintGrowListeners
DOCUMENT ME!
-
posTextF
protected javax.swing.JTextField posTextF
DOCUMENT ME!
-
range
protected double range
DOCUMENT ME!
-
rangeB
protected double rangeB
DOCUMENT ME!
-
rangeG
protected double rangeG
DOCUMENT ME!
-
rangeR
protected double rangeR
DOCUMENT ME!
-
regionGrowAlgo
protected AlgorithmRegionGrow regionGrowAlgo
DOCUMENT ME!
-
setRadioBoth
protected boolean setRadioBoth
DOCUMENT ME!
-
sizeCheckbox
protected javax.swing.JCheckBox sizeCheckbox
DOCUMENT ME!
-
upperMid
protected javax.swing.JLabel upperMid
DOCUMENT ME!
-
upperMidB
protected javax.swing.JLabel upperMidB
DOCUMENT ME!
-
upperMidG
protected javax.swing.JLabel upperMidG
DOCUMENT ME!
-
upperMidR
protected javax.swing.JLabel upperMidR
DOCUMENT ME!
-
upSlider
protected javax.swing.JSlider upSlider
DOCUMENT ME!
-
upSliderB
protected javax.swing.JSlider upSliderB
DOCUMENT ME!
-
upSliderField
protected javax.swing.JTextField upSliderField
DOCUMENT ME!
-
upSliderFieldB
protected javax.swing.JTextField upSliderFieldB
DOCUMENT ME!
-
upSliderFieldG
protected javax.swing.JTextField upSliderFieldG
DOCUMENT ME!
-
upSliderFieldR
protected javax.swing.JTextField upSliderFieldR
DOCUMENT ME!
-
upSliderG
protected javax.swing.JSlider upSliderG
DOCUMENT ME!
-
upSliderR
protected javax.swing.JSlider upSliderR
DOCUMENT ME!
-
useVOI
protected boolean useVOI
DOCUMENT ME!
-
variableDeltasCheckbox
protected javax.swing.JCheckBox variableDeltasCheckbox
DOCUMENT ME!
-
variableThresholds
protected boolean variableThresholds
DOCUMENT ME!
-
voiCheckbox
protected javax.swing.JCheckBox voiCheckbox
DOCUMENT ME!
-
disableSliders
private boolean disableSliders
DOCUMENT ME!
-
disableSlidersB
private boolean disableSlidersB
DOCUMENT ME!
-
disableSlidersG
private boolean disableSlidersG
DOCUMENT ME!
-
disableSlidersR
private boolean disableSlidersR
DOCUMENT ME!
-
font12B
private java.awt.Font font12B
DOCUMENT ME!
-
imageType
private int imageType
DOCUMENT ME!
-
lowSetFromField
private boolean lowSetFromField
DOCUMENT ME!
-
lowSetFromFieldB
private boolean lowSetFromFieldB
DOCUMENT ME!
-
lowSetFromFieldG
private boolean lowSetFromFieldG
DOCUMENT ME!
-
lowSetFromFieldR
private boolean lowSetFromFieldR
DOCUMENT ME!
-
tabbedPane
private javax.swing.JTabbedPane tabbedPane
DOCUMENT ME!
-
upSetFromField
private boolean upSetFromField
DOCUMENT ME!
-
upSetFromFieldB
private boolean upSetFromFieldB
DOCUMENT ME!
-
upSetFromFieldG
private boolean upSetFromFieldG
DOCUMENT ME!
-
upSetFromFieldR
private boolean upSetFromFieldR
DOCUMENT ME!
-
surfacePaint
private SurfacePaint surfacePaint
SurfacePaint reference
-
surfacePaint_WM
private SurfacePaint_WM surfacePaint_WM
SurfacePaint reference
-
-
Constructor Detail
-
JDialogPaintGrow
public JDialogPaintGrow(java.awt.Frame theParentFrame, java.util.Vector<PaintGrowListener> paintListeners)
Creates new dialog and sets up GUI components.- Parameters:
theParentFrame
- Parent frame.paintListeners
- DOCUMENT ME!
-
JDialogPaintGrow
public JDialogPaintGrow(java.awt.Frame theParentFrame, java.util.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(java.awt.Frame theParentFrame, java.awt.Frame attachedFrame, java.util.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(java.awt.Frame theParentFrame, java.util.Vector<PaintGrowListener> paintListeners, boolean setRadioBoth, java.lang.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(java.awt.Frame theParentFrame, SurfacePaint surfacePaint, java.util.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(java.awt.Frame theParentFrame, SurfacePaint_WM surfacePaint, java.util.Vector<PaintGrowListener> paintListeners)
Creates new dialog and sets up GUI components.- Parameters:
theParentFrame
- Parent frame.surfacePaint
- for Painting on a surfacepaintListeners
- DOCUMENT ME!
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent event)
Sets parameters in PaintGrowListener when Apply is pressed. Closes dialog box in response to both Apply and Cancel buttons.- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
- Overrides:
actionPerformed
in 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:
getDisplayFuzzy
in interfaceRegionGrowDialog
- Returns:
- displayFuzzy
-
getFuzzyThreshold
public float getFuzzyThreshold()
Accessor that returns the fuzzy threshold.- Specified by:
getFuzzyThreshold
in interfaceRegionGrowDialog
- Returns:
- fuzzy threshold
-
getLowerBound
public float getLowerBound()
Accessor to the lower bound slider.- Specified by:
getLowerBound
in 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:
getLowerBoundB
in 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:
getLowerBoundG
in 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:
getLowerBoundR
in 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:
getMaxDistance
in 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:
getMaxSize
in 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:
getUpperBound
in 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:
getUpperBoundB
in 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:
getUpperBoundG
in 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:
getUpperBoundR
in 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:
getUseVOI
in interfaceRegionGrowDialog
- Returns:
- useVOI
-
getVariableThresholds
public boolean getVariableThresholds()
Accessor that tells if the thresholds vary with region growth.- Specified by:
getVariableThresholds
in interfaceRegionGrowDialog
- Returns:
- variableThresholds
-
keyPressed
public void keyPressed(java.awt.event.KeyEvent e)
DOCUMENT ME!- Specified by:
keyPressed
in interfacejava.awt.event.KeyListener
- Parameters:
e
- DOCUMENT ME!
-
keyReleased
public void keyReleased(java.awt.event.KeyEvent e)
Placeholder required by KeyListener. Does nothing.- Specified by:
keyReleased
in interfacejava.awt.event.KeyListener
- Parameters:
e
- KeyEvent
-
keyTyped
public void keyTyped(java.awt.event.KeyEvent e)
Placeholder required by KeyListener. Does nothing.- Specified by:
keyTyped
in interfacejava.awt.event.KeyListener
- 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
public void notifyPaintListeners(boolean isRegionGrow, boolean backup, java.util.BitSet paintMask)
Tells images which are watching the paint region grow to update themselves.- Specified by:
notifyPaintListeners
in 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:
resetDialogs
in interfaceRegionGrowDialog
-
setPositionText
public void setPositionText(java.lang.String posString)
Sets text in positionPanel.- Specified by:
setPositionText
in interfaceRegionGrowDialog
- Parameters:
posString
- String to put in text field.
-
setRegionGrowAlgo
public void setRegionGrowAlgo(AlgorithmRegionGrow regionGrowAlgo)
DOCUMENT ME!- Specified by:
setRegionGrowAlgo
in interfaceRegionGrowDialog
- Parameters:
regionGrowAlgo
- DOCUMENT ME!
-
stateChanged
public void stateChanged(javax.swing.event.ChangeEvent e)
Sets values based on knob along slider.- Specified by:
stateChanged
in interfacejavax.swing.event.ChangeListener
- Parameters:
e
- Event that triggered this function
-
windowClosing
public void windowClosing(java.awt.event.WindowEvent event)
DOCUMENT ME!- Specified by:
windowClosing
in interfacejava.awt.event.WindowListener
- Overrides:
windowClosing
in classJDialogBase
- Parameters:
event
- Event that triggered this method.
-
init
protected void init()
Initializes GUI components.
-
buildFuzzyPanel
private javax.swing.JPanel buildFuzzyPanel()
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
buildStaticPanel
private javax.swing.JPanel buildStaticPanel()
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
focusLost
public void focusLost(java.awt.event.FocusEvent e)
Description copied from class:JDialogBase
Unchanged.- Specified by:
focusLost
in interfacejava.awt.event.FocusListener
- Overrides:
focusLost
in classJDialogBase
- Parameters:
e
- FocusEvent
-
-