Class 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 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
      • Nested classes/interfaces inherited from class java.awt.Container

        java.awt.Container.AccessibleAWTContainer
      • Nested classes/interfaces inherited from class java.awt.Component

        java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
    • 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 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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!
      • 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 to
        paintListeners - 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 frame
        leadString - 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 surface
        paintListeners - 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 surface
        paintListeners - 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 interface java.awt.event.ActionListener
        Overrides:
        actionPerformed in class JDialogBase
        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 interface RegionGrowDialog
        Returns:
        displayFuzzy
      • getFuzzyThreshold

        public float getFuzzyThreshold()
        Accessor that returns the fuzzy threshold.
        Specified by:
        getFuzzyThreshold in interface RegionGrowDialog
        Returns:
        fuzzy threshold
      • getLowerBound

        public float getLowerBound()
        Accessor to the lower bound slider.
        Specified by:
        getLowerBound in interface RegionGrowDialog
        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 interface RegionGrowDialog
        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 interface RegionGrowDialog
        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 interface RegionGrowDialog
        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 interface RegionGrowDialog
        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 interface RegionGrowDialog
        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 interface RegionGrowDialog
        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 interface RegionGrowDialog
        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 interface RegionGrowDialog
        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 interface RegionGrowDialog
        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 interface RegionGrowDialog
        Returns:
        useVOI
      • getVariableThresholds

        public boolean getVariableThresholds()
        Accessor that tells if the thresholds vary with region growth.
        Specified by:
        getVariableThresholds in interface RegionGrowDialog
        Returns:
        variableThresholds
      • keyPressed

        public void keyPressed​(java.awt.event.KeyEvent e)
        DOCUMENT ME!
        Specified by:
        keyPressed in interface java.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 interface java.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 interface java.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 interface RegionGrowDialog
        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 interface RegionGrowDialog
      • setPositionText

        public void setPositionText​(java.lang.String posString)
        Sets text in positionPanel.
        Specified by:
        setPositionText in interface RegionGrowDialog
        Parameters:
        posString - String to put in text field.
      • stateChanged

        public void stateChanged​(javax.swing.event.ChangeEvent e)
        Sets values based on knob along slider.
        Specified by:
        stateChanged in interface javax.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 interface java.awt.event.WindowListener
        Overrides:
        windowClosing in class JDialogBase
        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 interface java.awt.event.FocusListener
        Overrides:
        focusLost in class JDialogBase
        Parameters:
        e - FocusEvent