Class JDialogExtractObject

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

public class JDialogExtractObject extends JDialogBase implements AlgorithmInterface, ListSelectionListener
DOCUMENT ME!
Version:
1.0 July 17, 2000
Author:
Matthew J. McAuliffe, Ph.D.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Use serialVersionUID for interoperability.
      See Also:
    • chooserButton

      private JButton chooserButton
      DOCUMENT ME!
    • chooserButton2

      private JButton chooserButton2
      DOCUMENT ME!
    • extractObjectAlgo

      private AlgorithmObjectExtractor extractObjectAlgo
      DOCUMENT ME!
    • groupNum

      private int groupNum
      DOCUMENT ME!
    • gvfImage

      private ModelImage[] gvfImage
      DOCUMENT ME!
    • gvfModel

      private DefaultListModel gvfModel
      DOCUMENT ME!
    • gvfName

      private String gvfName
      DOCUMENT ME!
    • image

      private ModelImage image
      DOCUMENT ME!
    • justInit

      private boolean justInit
      DOCUMENT ME!
    • justInitCheckbox

      private JCheckBox justInitCheckbox
      DOCUMENT ME!
    • model

      private DefaultListModel model
      DOCUMENT ME!
    • removeButton

      private JButton removeButton
      DOCUMENT ME!
    • removeButton2

      private JButton removeButton2
      DOCUMENT ME!
    • saveGVF

      private boolean saveGVF
      DOCUMENT ME!
    • saveGVFCheckBox

      private JCheckBox saveGVFCheckBox
      DOCUMENT ME!
    • srcVOI

      private VOI srcVOI
      DOCUMENT ME!
    • surName

      private String surName
      DOCUMENT ME!
    • titles

      private String[] titles
      DOCUMENT ME!
    • triMesh

      private WildMagic.LibGraphics.SceneGraph.TriMesh triMesh
      DOCUMENT ME!
    • userInterface

      private ViewUserInterface userInterface
      DOCUMENT ME!
  • Constructor Details

    • JDialogExtractObject

      public JDialogExtractObject(Frame theParentFrame, ModelImage im)
      Sets the appropriate variables. Does not actually create a dialog that is visible because no user input is necessary at present.
      Parameters:
      theParentFrame - Parent frame.
      im - Source image.
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Presently only the script function calls this method. When the script sends this dialog the action command, this method calls run.
      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 algorithms when it has completed or failed to to complete, so that the dialog can display the result image and/or clean up.
      Specified by:
      algorithmPerformed in interface AlgorithmInterface
      Parameters:
      algorithm - Algorithm that caused the event.
    • callAlgorithm

      protected void callAlgorithm()
      Calls the algorithm.
    • valueChanged

      public void valueChanged(ListSelectionEvent evt)
      Sets the remove index based on the selected index in the list.
      Specified by:
      valueChanged in interface ListSelectionListener
      Parameters:
      evt - Event that caused this method to fire.
    • checkImage

      private boolean checkImage(ModelImage testImage)
      Checks the dimensionality of the new image vs. the original source image. All new images should be of the same dimensions.
      Parameters:
      testImage - DOCUMENT ME!
      Returns:
      Flag indicating if the image checks out.
    • init

      private void init()
      Makes the GUI elements of the dialog.
    • open

      private void open()
      Open an image based on the suffix of the file.
    • openGVF

      private ModelImage[] openGVF()
      Open an image based on the suffix of the file.
      Returns:
      The image.
    • 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.