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 TypeMethodDescriptionvoidMethod public due to ActionListener implementationvoiddoRemove()Called to remove this from the display.voidFill a list of componentsgetLabel()Get the label for this widget.Get the range from the color tablebooleanAre we enabledvoidSet the range information for this widget.voidsetSelectRangeEnabled(boolean v) Set enabledvoidShow 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:
actionPerformedin interfaceActionListener- Overrides:
actionPerformedin 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:
fillListin 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:
doRemovein interfaceRemovable- Overrides:
doRemovein classControlWidget
-