|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.idv.ui.ContourInfoDialog
public class ContourInfoDialog
A JFrame widget to get contouring info from the user. The code to handle button events and actions is in the event Listeners appearing in the constructor.
| Constructor Summary | |
|---|---|
ContourInfoDialog(String title,
boolean showApplyBtn)
Construct the widget. |
|
ContourInfoDialog(String title,
boolean showApplyBtn,
Unit unit)
Construct the widget. |
|
ContourInfoDialog(String title,
boolean showApplyBtn,
Unit unit,
boolean doDialog)
ctor |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent evt)
Show the dialog box and wait for results and deal with them (ok or cancel). |
boolean |
doApply()
Apply the state to the display |
JComponent |
getContents()
get the gui contents |
static Object |
getContourFont(Object fontSpec)
Get the contour font (Font or HersheyFont or null) |
ContourInfo |
getInfo()
Get the info |
JComponent |
getLabelPanel()
get the label widget contents |
void |
setState(ContourInfo transfer)
Show the dialog box and wait for results and deal with them. |
boolean |
showDialog(ContourInfo transfer)
Show the dialog box and wait for results and deal with them. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContourInfoDialog(String title,
boolean showApplyBtn)
title - title for frameshowApplyBtn - Should we show the apply button
public ContourInfoDialog(String title,
boolean showApplyBtn,
Unit unit)
title - title for frameshowApplyBtn - Should we show the apply buttonunit - Unit to show. May be null.
public ContourInfoDialog(String title,
boolean showApplyBtn,
Unit unit,
boolean doDialog)
title - title for frameshowApplyBtn - Should we show the apply buttonunit - Unit to show. May be null.doDialog - show as dialog| Method Detail |
|---|
public JComponent getContents()
public JComponent getLabelPanel()
public boolean doApply()
public void actionPerformed(ActionEvent evt)
actionPerformed in interface ActionListenerevt - ActionEventpublic boolean showDialog(ContourInfo transfer)
transfer - a ContourInfo data object to transfer all values
public void setState(ContourInfo transfer)
transfer - a ContourInfo data object to transfer all valuespublic static Object getContourFont(Object fontSpec)
fontSpec - string or Font/HersheyFont
public ContourInfo getInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||