Package ucar.unidata.idv.control
Class RangeDialog
java.lang.Object
ucar.unidata.idv.control.RangeDialog
- All Implemented Interfaces:
RangeWidget,Removable
A JFrame widget to get range info from the user.
The code to handle button events and actions is
in the event Listeners appearing in the constructor.
- Version:
- $Revision: 1.10 $
- Author:
- Unidata Development Team
-
Constructor Summary
ConstructorsConstructorDescriptionRangeDialog(DisplayControlImpl displayControl, Range r, String title, String setRangeMethod) Construct the widget.RangeDialog(DisplayControlImpl displayControl, Range r, String title, String setRangeMethod, Component launcher) Construct the widget. -
Method Summary
Modifier and TypeMethodDescriptionvoidChange the rangevoiddoRemove()Dispose of the dialogvoidlogException(String message, Exception exc) Utility method to log an exception.voidShow the change range dialogvoidSet the value in the min max fields in the range dialogvoidsetRangeFromPopup(String cmd) Set the range in the dialogvoidShow the dialog
-
Constructor Details
-
RangeDialog
Construct the widget.- Parameters:
displayControl- The displayr- the initial rangetitle- title for framesetRangeMethod- the method to call on the displaycontrol for change
-
RangeDialog
public RangeDialog(DisplayControlImpl displayControl, Range r, String title, String setRangeMethod, Component launcher) Construct the widget.- Parameters:
displayControl- The displayr- the initial rangetitle- title for framesetRangeMethod- the method to call on the displaycontrol for changelauncher- a component to place this near (can be null);
-
-
Method Details
-
doMakeDialog
public void doMakeDialog()Change the range -
doRemove
public void doRemove()Dispose of the dialog -
showDialog
public void showDialog()Show the dialog -
setRangeFromPopup
Set the range in the dialog- Parameters:
cmd- Which one
-
setRangeDialog
Set the value in the min max fields in the range dialog- Specified by:
setRangeDialogin interfaceRangeWidget- Parameters:
r- The range
-
rangePopup
public void rangePopup()Show the change range dialog -
logException
Utility method to log an exception.- Parameters:
message- The messageexc- The exception
-