public class ControlUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static javax.swing.JFileChooser |
chooser |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
e2(double d)
Convert a double to a string, printing two decimal places including exponent.
|
static java.lang.String |
e3(double d)
Convert a double to a string, printing three decimal places including exponent.
|
static java.lang.String |
e4(double d)
Convert a double to a string, printing four decimal places including exponent.
|
static java.lang.String |
f2(double d)
Convert a double to a string, printing two decimal places.
|
static java.lang.String |
f3(double d)
Convert a double to a string, printing three decimal places.
|
static java.lang.String |
f4(double d)
Convert a double to a string, printing four decimal places.
|
static java.lang.String |
getSystemProperties() |
static javax.swing.JFileChooser |
getXMLFileChooser()
Gets a file chooser.
|
static void |
loadParameters(Control control,
java.awt.Component parent)
Loads control parameters from a text file using a dialog box.
|
static void |
saveToFile(java.lang.Object object,
java.awt.Component parent)
Pops up a "Save File" file chooser dialog and takes user through process of saving and object to a file.
|
static void |
saveXML(java.lang.Object obj) |
static javax.swing.JFrame |
showSystemProperties(boolean vis)
Shows the about dialog.
|
public static java.lang.String f2(double d)
d
- Input doublepublic static java.lang.String f3(double d)
d
- Input doublepublic static java.lang.String e2(double d)
d
- Input doublepublic static java.lang.String e3(double d)
d
- Input doublepublic static java.lang.String e4(double d)
d
- Input doublepublic static java.lang.String f4(double d)
d
- Input doublepublic static javax.swing.JFrame showSystemProperties(boolean vis)
public static java.lang.String getSystemProperties()
public static void loadParameters(Control control, java.awt.Component parent)
public static void saveToFile(java.lang.Object object, java.awt.Component parent)
object
- the object that will be converted to a string and savedparent
- the parent component of the dialog, can be null
;
see showDialog
in class JFileChooser for detailspublic static void saveXML(java.lang.Object obj)
public static javax.swing.JFileChooser getXMLFileChooser()