Class PlanViewControl.VerticalRangeWidget

java.lang.Object
ucar.unidata.idv.control.ControlWidget
ucar.unidata.idv.control.PlanViewControl.VerticalRangeWidget
All Implemented Interfaces:
ActionListener, EventListener, Removable
Enclosing class:
PlanViewControl

public class PlanViewControl.VerticalRangeWidget extends ControlWidget
A widget for the control window for setting the vertical range properties
Author:
Unidata Development Team
  • Constructor Details

    • VerticalRangeWidget

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

      public VerticalRangeWidget(PlanViewControl control, Range range, String dialogTitle)
      Construct a VerticalRangeWidget
      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
    • getRange

      public Range getRange()
      Get the range information for this widget.
      Returns:
      the Range
    • 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
    • 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