Class JDialogLoadImageForRegistration

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

public class JDialogLoadImageForRegistration extends JDialogBase
JDialogLoadImage allows the MIPAV user to import an image (namely, ImageA) from another image frame. The titles of other images are listed in a drop-down combo-box, as they are found by MIPAV when the dialog is opened. The dialog is modal and the okay button will not be available if there is only one frame open (the only way to bring up the dialog). The dialog will not discriminate between frames which have the same names, taking the first frame it finds which the selected name.

This class has the option to include a "Browse Files..." button; however, this functionality has not been completely implemented.

Version:
1.00
Author:
David Parsons
See Also:
  • Field Details

    • serialVersionUID

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

      private JButton browseButton
      DOCUMENT ME!
    • directory

      private String directory
      DOCUMENT ME!
    • fileButton

      private JRadioButton fileButton
      DOCUMENT ME!
    • fileName

      private String fileName
      DOCUMENT ME!
    • fileTFld

      private JTextField fileTFld
      DOCUMENT ME!
    • frameButton

      private JRadioButton frameButton
      DOCUMENT ME!
    • imageA

      private ModelImage imageA
      DOCUMENT ME!
    • imageChooser

      private JComboBox imageChooser
      DOCUMENT ME!
    • importImage

      private ModelImage importImage
      image taken from the frame to be imported:.
    • isFrame

      private boolean isFrame
      DOCUMENT ME!
    • LUTb

      private ModelLUT LUTb
      DOCUMENT ME!
    • masterImage

      private ViewJFrameImage masterImage
      DOCUMENT ME!
    • userInterface

      private ViewUserInterface userInterface
      DOCUMENT ME!
  • Constructor Details

    • JDialogLoadImageForRegistration

      public JDialogLoadImageForRegistration(ViewJFrameImage component)
      Creates a new JDialogLoadImageForRegistration object.
      Parameters:
      component - DOCUMENT ME!
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent ae)
      when a button is clicked.
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class JDialogBase
      Parameters:
      ae - DOCUMENT ME!
    • getImage

      public ModelImage getImage()
      gets the image that was imported from the frame or taken from files (ie., "browse files").
      Returns:
      ModelImage image imported from frame or decoded from file.
    • getModelLUT

      public ModelLUT getModelLUT()
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
    • isFromFrame

      public boolean isFromFrame()
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!