Package ucar.unidata.idv.control
Class SelectRangeWidget
java.lang.Object
ucar.unidata.idv.control.ControlWidget
ucar.unidata.idv.control.SelectRangeWidget
- All Implemented Interfaces:
ActionListener
,EventListener
,Removable
A widget for the control window for viewing data range properties
- Version:
- $Revision: 1.7 $
- Author:
- Unidata Development Team
-
Constructor Summary
ConstructorsConstructorDescriptionSelectRangeWidget
(DisplayControlImpl control, Range range) Construct a SelectRangeWidgetSelectRangeWidget
(DisplayControlImpl control, Range range, String dialogTitle) Construct a SelectRangeWidget -
Method Summary
Modifier and TypeMethodDescriptionvoid
Method public due to ActionListener implementationvoid
doRemove()
Called to remove this from the display.void
Fill a list of componentsgetLabel()
Get the label for this widget.Get the range from the color tableboolean
Are we enabledvoid
Set the range information for this widget.void
setSelectRangeEnabled
(boolean v) Set enabledvoid
Show the dialogMethods inherited from class ucar.unidata.idv.control.ControlWidget
fillList, fillList, getDisplayControl, getDisplayConventions, logException, userMessage
-
Constructor Details
-
SelectRangeWidget
Construct a SelectRangeWidget- Parameters:
control
- the associate controlrange
- The initial range
-
SelectRangeWidget
Construct a SelectRangeWidget- Parameters:
control
- the associate controlrange
- The initial rangedialogTitle
- Dialog title
-
-
Method Details
-
actionPerformed
Method public due to ActionListener implementation- Specified by:
actionPerformed
in interfaceActionListener
- Overrides:
actionPerformed
in classControlWidget
- Parameters:
ae
- action event
-
showChangeRangeDialog
public void showChangeRangeDialog()Show the dialog -
setRange
Set the range information for this widget.- Parameters:
r
- new Range
-
getLabel
Get the label for this widget.- Returns:
- the label.
-
fillList
Fill a list of components- Overrides:
fillList
in classControlWidget
- Parameters:
l
- list of widgetscolumns
- 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
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 interfaceRemovable
- Overrides:
doRemove
in classControlWidget
-