org.opensourcephysics.ejs.control
Class ConstantParser

java.lang.Object
  extended by 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


Field Summary
static java.awt.Color NULL_COLOR
           
 
Constructor Summary
ConstantParser()
           
 
Method Summary
static Value booleanConstant(java.lang.String _value)
           
static Value colorConstant(java.lang.String _value)
           
static Value fontConstant(java.awt.Font _currentFont, java.lang.String _value)
           
static Value formatConstant(java.lang.String _value)
           
static Value rectangleConstant(java.lang.String _value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL_COLOR

public static final java.awt.Color NULL_COLOR
Constructor Detail

ConstantParser

public ConstantParser()
Method Detail

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)