Package net.sourceforge.jeuclid.context
Enum Class Parameter
- All Implemented Interfaces:
Serializable,Comparable<Parameter>,Constable
Possible parameters for the LayoutContext.
- Version:
- $Revision: 03dc0884e86f $
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAnti-Alias mode (Boolean) for rendering.Minimum font size for which anti-alias is turned on.Debug mode (Boolean).Display style (Display).List<String> of font families for double-struck.List<String> of font families for fraktur.List<String> of font families for monospaced.List<String> of font families for sans-serif.CList<String> of font families for script.List<String> of font families for serif.Default background color (Color), may be null.Default foreground color (Color).Font size (Float) used for the output.If true, <mfrac> element will NEVER increase children's scriptlevel (in violation of the spec); otherwise it will behave with accordance to the spec.Script level (Integer), defaults to 0.Font size (Float) for smallest script used.Script size multiplier (Float), defaults to 0.71. -
Method Summary
Modifier and TypeMethodDescriptionfromString(String value) Attempts to convert a parameter value expressed as string into an instance of the appropriate (for this parameter) type.Attempts to convert a parameter value expressed as an object of the appropriate (for this parameter) type into a string representation.booleanChecks if the object is of a valid type for this parameter.static ParameterReturns the enum constant of this class with the specified name.static Parameter[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DISPLAY
Display style (Display). -
MATHSIZE
Font size (Float) used for the output. Defaults to 12.0pt. Please Note: You may also want to set SCRIPTMINZISE. -
SCRIPTMINSIZE
Font size (Float) for smallest script used. Defaults to 8.0pt. -
SCRIPTSIZEMULTIPLIER
Script size multiplier (Float), defaults to 0.71. -
SCRIPTLEVEL
Script level (Integer), defaults to 0. -
ANTIALIAS_MINSIZE
Minimum font size for which anti-alias is turned on. Defaults to 10.0pt -
DEBUG
Debug mode (Boolean). If true, elements will have borders drawn around them. -
ANTIALIAS
Anti-Alias mode (Boolean) for rendering. -
MATHCOLOR
Default foreground color (Color). See 3.2.2.2 -
MATHBACKGROUND
Default background color (Color), may be null. See 3.2.2.2 -
FONTS_SANSSERIF
List<String> of font families for sans-serif.- See Also:
-
FONTS_SERIF
List<String> of font families for serif.- See Also:
-
FONTS_MONOSPACED
List<String> of font families for monospaced.- See Also:
-
FONTS_SCRIPT
CList<String> of font families for script.- See Also:
-
FONTS_FRAKTUR
List<String> of font families for fraktur.- See Also:
-
FONTS_DOUBLESTRUCK
List<String> of font families for double-struck.- See Also:
-
MFRAC_KEEP_SCRIPTLEVEL
If true, <mfrac> element will NEVER increase children's scriptlevel (in violation of the spec); otherwise it will behave with accordance to the spec.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getTypeWrapper
- Returns:
- TypeWrapper instance used for this parameter
-
getOptionName
- Returns:
- user-friendly option name associated with this parameter
-
getOptionDesc
- Returns:
- user-friendly option name associated with this parameter
-
valid
Checks if the object is of a valid type for this parameter.- Parameters:
o- the object to check- Returns:
- true if the parameter can be set.
-
fromString
Attempts to convert a parameter value expressed as string into an instance of the appropriate (for this parameter) type.- Parameters:
value- parameter value as string- Returns:
- parameter value as an instance of the proper type
-
toString
Attempts to convert a parameter value expressed as an object of the appropriate (for this parameter) type into a string representation.- Parameters:
value- parameter value as object- Returns:
- parameter value as string
-