Package adams.core.option.parsing
Class FontParsing
- java.lang.Object
-
- adams.core.option.parsing.AbstractParsing
-
- adams.core.option.parsing.FontParsing
-
public class FontParsing extends AbstractParsing
For parsing Font options.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description FontParsing()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
toString(AbstractOption option, Object object)
Returns the color as string.static Object
valueOf(AbstractOption option, String str)
Returns a color generated from the string.
-
-
-
Field Detail
-
PLAIN
public static final String PLAIN
the string for PLAIN.- See Also:
- Constant Field Values
-
BOLD
public static final String BOLD
the string for BOLD.- See Also:
- Constant Field Values
-
ITALIC
public static final String ITALIC
the string for ITALIC.- See Also:
- Constant Field Values
-
SEPARATOR
public static final char SEPARATOR
the separator.- See Also:
- Constant Field Values
-
-
Method Detail
-
toString
public static String toString(AbstractOption option, Object object)
Returns the color as string.- Parameters:
option
- the current optionobject
- the color object to convert- Returns:
- the generated string
-
valueOf
public static Object valueOf(AbstractOption option, String str)
Returns a color generated from the string.- Parameters:
option
- the current optionstr
- the string to convert to a color- Returns:
- the generated color
-
-