Package ucar.unidata.idv.control
Class ColorScaleDialog
java.lang.Object
ucar.unidata.idv.control.ColorScaleDialog
- All Implemented Interfaces:
ActionListener
,EventListener
A JFrame widget to get color scale info from the user.
The code to handle button events and actions is
in the event Listeners appearing in the constructor.
- Author:
- Unidata Development Team
-
Constructor Summary
ConstructorsConstructorDescriptionColorScaleDialog
(DisplayControlImpl displayControl, String title, ColorScaleInfo info, boolean showDialog) Construct the widget. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Show the dialog box and wait for results and deal with them (ok or cancel).protected void
dispose()
Dispose of the dialogprotected boolean
doApply()
Apply the state to the displayGet the main contents of the dialoggetInfo()
Get the infoboolean
getOk()
Was ok pressed
-
Constructor Details
-
ColorScaleDialog
public ColorScaleDialog(DisplayControlImpl displayControl, String title, ColorScaleInfo info, boolean showDialog) Construct the widget. with interval, min, max entry boxes and ok and cancel buttons.- Parameters:
displayControl
- The displaytitle
- title for frameinfo
- the color scale infoshowDialog
- true to show the dialog
-
-
Method Details
-
getContents
Get the main contents of the dialog- Returns:
- the contents
-
dispose
protected void dispose()Dispose of the dialog -
doApply
protected boolean doApply()Apply the state to the display- Returns:
- Was this successful
-
actionPerformed
Show the dialog box and wait for results and deal with them (ok or cancel).- Specified by:
actionPerformed
in interfaceActionListener
- Parameters:
evt
- ActionEvent
-
getInfo
Get the info- Returns:
- The info
-
getOk
public boolean getOk()Was ok pressed- Returns:
- was ok pressed
-