public class ContourInfoDialog
extends java.lang.Object
implements java.awt.event.ActionListener
Constructor and Description |
---|
ContourInfoDialog(java.lang.String title,
boolean showApplyBtn)
Construct the widget.
|
ContourInfoDialog(java.lang.String title,
boolean showApplyBtn,
visad.Unit unit)
Construct the widget.
|
ContourInfoDialog(java.lang.String title,
boolean showApplyBtn,
visad.Unit unit,
boolean doDialog)
ctor
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.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
|
javax.swing.JComponent |
getContents()
get the gui contents
|
static java.lang.Object |
getContourFont(java.lang.Object fontSpec)
Get the contour font (Font or HersheyFont or null)
|
ContourInfo |
getInfo()
Get the info
|
javax.swing.JComponent |
getLabelPanel()
get the label widget contents
|
javax.swing.JFormattedTextField |
getTextField(javax.swing.JSpinner spinner)
Return the formatted text field used by the editor, or null if the editor
doesn't descend from JSpinner.DefaultEditor.
|
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.
|
public ContourInfoDialog(java.lang.String title, boolean showApplyBtn)
title
- title for frameshowApplyBtn
- Should we show the apply buttonpublic ContourInfoDialog(java.lang.String title, boolean showApplyBtn, visad.Unit unit)
title
- title for frameshowApplyBtn
- Should we show the apply buttonunit
- Unit to show. May be null.public ContourInfoDialog(java.lang.String title, boolean showApplyBtn, visad.Unit unit, boolean doDialog)
title
- title for frameshowApplyBtn
- Should we show the apply buttonunit
- Unit to show. May be null.doDialog
- show as dialogpublic javax.swing.JComponent getContents()
public javax.swing.JComponent getLabelPanel()
public boolean doApply()
public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed
in interface java.awt.event.ActionListener
evt
- ActionEventpublic javax.swing.JFormattedTextField getTextField(javax.swing.JSpinner spinner)
spinner
- the spinnerpublic boolean showDialog(ContourInfo transfer)
transfer
- a ContourInfo data object to transfer all valuespublic void setState(ContourInfo transfer)
transfer
- a ContourInfo data object to transfer all valuespublic static java.lang.Object getContourFont(java.lang.Object fontSpec)
fontSpec
- string or Font/HersheyFontpublic ContourInfo getInfo()