org.opensourcephysics.ejs.control.swing
Class ConstantParser

java.lang.Object
  extended by org.opensourcephysics.ejs.control.ConstantParser
      extended by org.opensourcephysics.ejs.control.swing.ConstantParser

public class ConstantParser
extends ConstantParser

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
 
Fields inherited from class org.opensourcephysics.ejs.control.ConstantParser
NULL_COLOR
 
Constructor Summary
ConstantParser()
           
 
Method Summary
static Value alignmentConstant(java.lang.String _value)
           
static Value constraintsConstant(java.lang.String _value)
           
static Value dimensionConstant(java.lang.String _value)
           
static Value layoutConstant(java.awt.Container _container, java.lang.String _value)
           
static Value orientationConstant(java.lang.String _value)
           
static Value placementConstant(java.lang.String _value)
           
static Value pointConstant(java.lang.String _value)
           
 
Methods inherited from class org.opensourcephysics.ejs.control.ConstantParser
booleanConstant, colorConstant, fontConstant, formatConstant, rectangleConstant
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantParser

public ConstantParser()
Method Detail

pointConstant

public static Value pointConstant(java.lang.String _value)

dimensionConstant

public static Value dimensionConstant(java.lang.String _value)

placementConstant

public static Value placementConstant(java.lang.String _value)

layoutConstant

public static Value layoutConstant(java.awt.Container _container,
                                   java.lang.String _value)

constraintsConstant

public static Value constraintsConstant(java.lang.String _value)

orientationConstant

public static Value orientationConstant(java.lang.String _value)

alignmentConstant

public static Value alignmentConstant(java.lang.String _value)