ucar.unidata.idv.control
Class PlanViewControl.VerticalRangeWidget

java.lang.Object
  extended by ucar.unidata.idv.control.ControlWidget
      extended by 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 Summary
PlanViewControl.VerticalRangeWidget(PlanViewControl control, Range range)
          Construct a VerticalRangeWidget
PlanViewControl.VerticalRangeWidget(PlanViewControl control, Range range, String dialogTitle)
          Construct a VerticalRangeWidget
 
Method Summary
 void actionPerformed(ActionEvent ae)
          Method public due to ActionListener implementation
 void doRemove()
          Called to remove this from the display.
 void fillList(List l, int columns)
          Fill a list of components
 JLabel getLabel()
          Get the label for this widget.
 Range getRange()
          Get the range information for this widget.
 Range getRangeFromColorTable()
          Get the range from the color table
 void setRange(Range r)
          Set the range information for this widget.
 void showChangeRangeDialog()
          Show the dialog
 
Methods inherited from class ucar.unidata.idv.control.ControlWidget
fillList, fillList, getDisplayControl, getDisplayConventions, logException, userMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlanViewControl.VerticalRangeWidget

public PlanViewControl.VerticalRangeWidget(PlanViewControl control,
                                           Range range)
Construct a VerticalRangeWidget

Parameters:
control - the associate control
range - The initial range

PlanViewControl.VerticalRangeWidget

public PlanViewControl.VerticalRangeWidget(PlanViewControl control,
                                           Range range,
                                           String dialogTitle)
Construct a VerticalRangeWidget

Parameters:
control - the associate control
range - The initial range
dialogTitle - Dialog title
Method Detail

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