ucar.unidata.idv.control
Class SelectRangeWidget

java.lang.Object
  extended by ucar.unidata.idv.control.ControlWidget
      extended by 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 Summary
SelectRangeWidget(DisplayControlImpl control, Range range)
          Construct a SelectRangeWidget
SelectRangeWidget(DisplayControlImpl control, Range range, String dialogTitle)
          Construct a SelectRangeWidget
 
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 getRangeFromColorTable()
          Get the range from the color table
 boolean getSelectRangeEnabled()
          Are we enabled
 void setRange(Range r)
          Set the range information for this widget.
 void setSelectRangeEnabled(boolean v)
          Set enabled
 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

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 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


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