Class JDialogVOIBoolean

All Implemented Interfaces:
AlgorithmInterface, DialogDefaultsInterface, ActionListener, FocusListener, ItemListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class JDialogVOIBoolean extends JDialogBase implements AlgorithmInterface, ItemListener, WindowListener
Dialog to use difference, intersection, exclusive or, or intersection on 2 VOIs
See Also:
  • Field Details

    • booleanGroup

      private ButtonGroup booleanGroup
      DOCUMENT ME!
    • intersectionButton

      private JRadioButton intersectionButton
      DOCUMENT ME!
    • differenceButton

      private JRadioButton differenceButton
      DOCUMENT ME!
    • componentImage

      private ViewJComponentEditImage componentImage
      DOCUMENT ME!
    • image

      private ModelImage image
      DOCUMENT ME!
    • exclusiveOrButton

      private JRadioButton exclusiveOrButton
      DOCUMENT ME!
    • subjectVOIButton

      private JRadioButton subjectVOIButton
      DOCUMENT ME!
    • subjectVOIIndex

      private int subjectVOIIndex
      DOCUMENT ME!
    • unionButton

      private JRadioButton unionButton
      DOCUMENT ME!
    • VOIGroup

      private ButtonGroup VOIGroup
      DOCUMENT ME!
    • VOIs

      private ViewVOIVector VOIs
      DOCUMENT ME!
    • nVOIs

      private int nVOIs
    • clipVOIButton

      private JRadioButton clipVOIButton
      DOCUMENT ME!
    • clipVOIIndex

      private int clipVOIIndex
      DOCUMENT ME!
    • removeSubjectVOICheckBox

      private JCheckBox removeSubjectVOICheckBox
    • removeSubjectVOI

      private boolean removeSubjectVOI
    • removeClipVOICheckBox

      private JCheckBox removeClipVOICheckBox
    • removeClipVOI

      private boolean removeClipVOI
    • op

  • Constructor Details

    • JDialogVOIBoolean

      public JDialogVOIBoolean(ModelImage image)
      Creates a new JDialogVOIBoolean object.
      Parameters:
      image - DOCUMENT ME!
    • JDialogVOIBoolean

      public JDialogVOIBoolean(Frame theParentFrame, ModelImage im)
      Creates new dialog.
      Parameters:
      theParentFrame - Parent frame
      im - Source image
    • JDialogVOIBoolean

      public JDialogVOIBoolean(Frame theParentFrame, VOIManagerInterface voiManager, ModelImage im)
      Creates new dialog for entering parameters for algorithm.
      Parameters:
      theParentFrame - Parent frame
      im - Source image
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Closes dialog box when the OK button is pressed and calls the algorithm.
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class JDialogBase
      Parameters:
      event - Event that triggers function.
    • algorithmPerformed

      public void algorithmPerformed(AlgorithmBase algorithm)
      This method is required if the AlgorithmPerformed interface is implemented. It is called by the algorithm when it has completed or failed to to complete, so that the dialog can be display the result image and/or clean up.
      Specified by:
      algorithmPerformed in interface AlgorithmInterface
      Parameters:
      algorithm - Algorithm that caused the event.
    • windowClosing

      public void windowClosing(WindowEvent event)
      Disposes of error dialog, then frame. Sets cancelled to true.
      Specified by:
      windowClosing in interface WindowListener
      Overrides:
      windowClosing in class JDialogBase
      Parameters:
      event - DOCUMENT ME!
    • callAlgorithm

      protected void callAlgorithm()
      DOCUMENT ME!
    • init

      private void init()
      Initializes GUI components and displays dialog.
    • setVariables

      private boolean setVariables()
      Use the GUI results to set up the variables needed to run the algorithm.
      Returns:
      true if parameters set successfully, false otherwise.