Class JDialogBlankImage

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

public class JDialogBlankImage extends JDialogBase
Dialog to get image type for blank image.
Version:
0.1 Aug 1, 1997
Author:
Matthew J. McAuliffe, Ph.D.
See Also:
  • Field Details

    • serialVersionUID

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

      private ModelStorageBase.DataType dataType
      The ModelStorageBase.DataType of the blank image.
    • image

      private ModelImage image
      The blank image to be created.
    • radioTypes

      private JRadioButton[] radioTypes
      The Radio buttons for selecting the new data type of the image
    • group1

      private ButtonGroup group1
      The composed group of radio buttons.
  • Constructor Details

    • JDialogBlankImage

      public JDialogBlankImage(Frame theParentFrame)
      Creates new dialog to get image type of blank image.
      Parameters:
      theParentFrame - Parent frame
  • Method Details

    • actionPerformed

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

      public ModelStorageBase.DataType getDataType()
      Accessor that returns the data type.
      Returns:
      the data type
    • getImage

      public ModelImage getImage()
      Accessor that returns the image.
      Returns:
      the image
    • makeImage

      private void makeImage()
      Creates new image with given data type.