org.opensourcephysics.ejs.control
Class ConstantParser
java.lang.Object
org.opensourcephysics.ejs.control.ConstantParser
- Direct Known Subclasses:
- ConstantParser
public class ConstantParser
- extends java.lang.Object
This class provides static methods that parse a string and return
a Value with the corresponding type and value, ready to be used by
the setValue() method of ControlElements
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NULL_COLOR
public static final java.awt.Color NULL_COLOR
ConstantParser
public ConstantParser()
fontConstant
public static Value fontConstant(java.awt.Font _currentFont,
java.lang.String _value)
booleanConstant
public static Value booleanConstant(java.lang.String _value)
colorConstant
public static Value colorConstant(java.lang.String _value)
formatConstant
public static Value formatConstant(java.lang.String _value)
rectangleConstant
public static Value rectangleConstant(java.lang.String _value)