Class ViewJFrameRegistration.JDialogIncrement

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

private class ViewJFrameRegistration.JDialogIncrement extends JDialogBase
Class for the two dialogs for incrementing - the pixel increment dialog and the degree increment dialog.
  • Field Details

    • serialVersionUID

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

      JTextField field
      Text field to enter increment.
    • increment

      float increment
      Increment value.
    • pixel

      boolean pixel
      Pixel or degree.
  • Constructor Details

    • JDialogIncrement

      public JDialogIncrement(Frame parent, boolean _pixel)
      Creates new dialog for incrementing either the pixel or the degree.
      Parameters:
      parent - The parent frame.
      _pixel - DOCUMENT ME!true means pixel dialog, otherwise degree dialog.
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent e)
      DOCUMENT ME!
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class JDialogBase
      Parameters:
      e - DOCUMENT ME!
    • getIncrement

      public float getIncrement()
      Accessor that returns the new increment value.
      Returns:
      DOCUMENT ME!
    • setVisible

      public void setVisible(boolean flag)
      Sets the dialog visible in the same location as the parent frame.
      Overrides:
      setVisible in class JDialogBase
      Parameters:
      flag - true means set visible.
    • init

      private void init(boolean pixel)
      Initializes GUI based on whether this is the pixel or degree dialog.
      Parameters:
      pixel - true means pixel dialog, otherwise degree dialog.