Package ucar.unidata.idv.control
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
A widget for the control window for setting the vertical range properties
- Author:
- Unidata Development Team
-
Constructor Summary
ConstructorsConstructorDescriptionVerticalRangeWidget
(PlanViewControl control, Range range) Construct a VerticalRangeWidgetVerticalRangeWidget
(PlanViewControl control, Range range, String dialogTitle) Construct a VerticalRangeWidget -
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.getRange()
Get the range information for this widget.Get the range from the color tablevoid
Set the range information for this widget.void
Show the dialogMethods inherited from class ucar.unidata.idv.control.ControlWidget
fillList, fillList, getDisplayControl, getDisplayConventions, logException, userMessage
-
Constructor Details
-
VerticalRangeWidget
Construct a VerticalRangeWidget- Parameters:
control
- the associate controlrange
- The initial range
-
VerticalRangeWidget
Construct a VerticalRangeWidget- 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 -
getRange
Get the range information for this widget.- Returns:
- the Range
-
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
-
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
-