Class RangeDialog

java.lang.Object
ucar.unidata.idv.control.RangeDialog
All Implemented Interfaces:
RangeWidget, Removable

public class RangeDialog extends Object implements RangeWidget, Removable
A JFrame widget to get range info from the user. The code to handle button events and actions is in the event Listeners appearing in the constructor.
Version:
$Revision: 1.10 $
Author:
Unidata Development Team
  • Constructor Details

    • RangeDialog

      public RangeDialog(DisplayControlImpl displayControl, Range r, String title, String setRangeMethod)
      Construct the widget.
      Parameters:
      displayControl - The display
      r - the initial range
      title - title for frame
      setRangeMethod - the method to call on the displaycontrol for change
    • RangeDialog

      public RangeDialog(DisplayControlImpl displayControl, Range r, String title, String setRangeMethod, Component launcher)
      Construct the widget.
      Parameters:
      displayControl - The display
      r - the initial range
      title - title for frame
      setRangeMethod - the method to call on the displaycontrol for change
      launcher - a component to place this near (can be null);
  • Method Details

    • doMakeDialog

      public void doMakeDialog()
      Change the range
    • doRemove

      public void doRemove()
      Dispose of the dialog
      Specified by:
      doRemove in interface Removable
    • showDialog

      public void showDialog()
      Show the dialog
    • setRangeFromPopup

      public void setRangeFromPopup(String cmd)
      Set the range in the dialog
      Parameters:
      cmd - Which one
    • setRangeDialog

      public void setRangeDialog(Range r)
      Set the value in the min max fields in the range dialog
      Specified by:
      setRangeDialog in interface RangeWidget
      Parameters:
      r - The range
    • rangePopup

      public void rangePopup()
      Show the change range dialog
    • logException

      public void logException(String message, Exception exc)
      Utility method to log an exception.
      Parameters:
      message - The message
      exc - The exception