Class JDialogGridOptions

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

public class JDialogGridOptions extends JDialogBase
Sets options for overlaying a grid on the image.
Version:
1.0
Author:
ben
See Also:
  • Field Details

    • serialVersionUID

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

      private ViewJColorChooser chooser
      DOCUMENT ME!
    • color

      private Color color
      DOCUMENT ME!
    • colorButton

      private JButton colorButton
      DOCUMENT ME!
    • comp

      DOCUMENT ME!
    • height

      private float height
      DOCUMENT ME!
    • heightField

      private JTextField heightField
      DOCUMENT ME!
    • labelBox

      private JCheckBox labelBox
      DOCUMENT ME!
    • showGridBox

      private JCheckBox showGridBox
      DOCUMENT ME!
    • labelXAlphaButton

      private JRadioButton labelXAlphaButton
      DOCUMENT ME!
    • labelXNumButton

      private JRadioButton labelXNumButton
      DOCUMENT ME!
    • unitsStr

      private String unitsStr
      DOCUMENT ME!
    • width

      private float width
      DOCUMENT ME!
    • widthField

      private JTextField widthField
      DOCUMENT ME!
  • Constructor Details

    • JDialogGridOptions

      public JDialogGridOptions(Frame theParentFrame, ViewJComponentEditImage comp)
      Creates new dialog for entering parameters for entropy minimization.
      Parameters:
      theParentFrame - Parent frame
      comp - Source image
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      actionPerformed - 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
    • init

      private void init()
      Sets up the GUI (panels, buttons, etc) and displays it on the screen.
    • setVariables

      private boolean setVariables()
      Check width and height for validity.
      Returns:
      boolean is okay