Class SelectRangeWidget

java.lang.Object
ucar.unidata.idv.control.ControlWidget
ucar.unidata.idv.control.SelectRangeWidget
All Implemented Interfaces:
ActionListener, EventListener, Removable

public class SelectRangeWidget extends ControlWidget
A widget for the control window for viewing data range properties
Version:
$Revision: 1.7 $
Author:
Unidata Development Team
  • Constructor Details

    • SelectRangeWidget

      public SelectRangeWidget(DisplayControlImpl control, Range range)
      Construct a SelectRangeWidget
      Parameters:
      control - the associate control
      range - The initial range
    • SelectRangeWidget

      public SelectRangeWidget(DisplayControlImpl control, Range range, String dialogTitle)
      Construct a SelectRangeWidget
      Parameters:
      control - the associate control
      range - The initial range
      dialogTitle - Dialog title
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent ae)
      Method public due to ActionListener implementation
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class ControlWidget
      Parameters:
      ae - action event
    • showChangeRangeDialog

      public void showChangeRangeDialog()
      Show the dialog
    • setRange

      public void setRange(Range r)
      Set the range information for this widget.
      Parameters:
      r - new Range
    • getLabel

      public JLabel getLabel()
      Get the label for this widget.
      Returns:
      the label.
    • fillList

      public void fillList(List l, int columns)
      Fill a list of components
      Overrides:
      fillList in class ControlWidget
      Parameters:
      l - list of widgets
      columns - number of columns for layout
    • getSelectRangeEnabled

      public boolean getSelectRangeEnabled()
      Are we enabled
      Returns:
      enabled
    • setSelectRangeEnabled

      public void setSelectRangeEnabled(boolean v)
      Set enabled
      Parameters:
      v - is enabled
    • getRangeFromColorTable

      public Range getRangeFromColorTable()
      Get the range from the color table
      Returns:
      range from the color table
    • doRemove

      public void doRemove()
      Called to remove this from the display.
      Specified by:
      doRemove in interface Removable
      Overrides:
      doRemove in class ControlWidget