|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.controls.ControlUtils
public class ControlUtils
Field Summary | |
---|---|
protected static javax.swing.JFileChooser |
chooser
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static javax.swing.JFileChooser chooser
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |