Class VertScaleDialog

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible
Direct Known Subclasses:
GlobeScaleDialog

public class VertScaleDialog extends JPanel implements ActionListener
A widget to get vertical range or scaling info from the user. NB: this should be called VertRangeDialog, but history trumps practicality
Author:
IDV Development Team
See Also:
  • Constructor Details

    • VertScaleDialog

      public VertScaleDialog(JFrame parent, ViewpointControl control, VertScaleInfo vertScaleInfo)
      Create a new dialog for setting the vertical range of the display
      Parameters:
      parent - parent for model dialog
      control - The control
      vertScaleInfo - The info to use
  • Method Details

    • doMakeContents

      protected void doMakeContents()
      Make the widget contents (UI)
    • actionPerformed

      public void actionPerformed(ActionEvent evt)
      Handle user click on OK or other(cancel) button. Closes the dialog.
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      evt - event to handle
    • setVisible

      public void setVisible(boolean v)
      Set visibility of dialog if in dialog mode
      Overrides:
      setVisible in class JComponent
      Parameters:
      v - Is visible
    • showDialog

      public void showDialog(VertScaleInfo transfer)
      Show the dialog box and wait for results and deal with them.
      Parameters:
      transfer - default values for the dialog
    • doApply

      public boolean doApply()
      Apply the dialog state
      Returns:
      Was it successful
    • isAxisVisible

      public boolean isAxisVisible()
      Checks if is axis visible.
      Returns:
      true, if is axis visible
    • getVertScaleInfo

      public VertScaleInfo getVertScaleInfo()
      Gets the vert scale info.
      Returns:
      the vert scale info