Class ConstantParser

java.lang.Object
org.opensourcephysics.ejs.control.ConstantParser
Direct Known Subclasses:
ConstantParser

public class ConstantParser extends 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 Details

    • NULL_COLOR

      public static final Color NULL_COLOR
  • Constructor Details

    • ConstantParser

      public ConstantParser()
  • Method Details

    • fontConstant

      public static Value fontConstant(Font _currentFont, String _value)
    • booleanConstant

      public static Value booleanConstant(String _value)
    • colorConstant

      public static Value colorConstant(String _value)
    • formatConstant

      public static Value formatConstant(String _value)
    • rectangleConstant

      public static Value rectangleConstant(String _value)