public static enum Font.Variant extends java.lang.Enum<Font.Variant>
Enum Constant and Description |
---|
ANY
Font-variant constant indicating no preference.
|
NORMAL
Font-variant constant indicating that small-caps is off.
|
SMALL_CAPS
Font-variant constant indicating that small-caps is on.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCssValue()
Returns the String describing this variant in CSS.
|
java.lang.String |
getFoValue()
Returns the String describing this variant in XSL-FO.
|
static Font.Variant |
parseCss(java.lang.String input,
boolean lowerCaseOnly)
Parses a CSS2 String into an instance of
Font.Variant . |
static Font.Variant |
parseFo(java.lang.String input,
boolean lowerCaseOnly)
Parses an XSL-FO String into an instance of
Font.Variant . |
static Font.Variant |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Font.Variant[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Font.Variant ANY
public static final Font.Variant NORMAL
public static final Font.Variant SMALL_CAPS
public static Font.Variant[] values()
for (Font.Variant c : Font.Variant.values()) System.out.println(c);
public static Font.Variant valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getCssValue()
public java.lang.String getFoValue()
public static Font.Variant parseCss(java.lang.String input, boolean lowerCaseOnly)
Font.Variant
.input
- The CSS2-style String to be converted.lowerCaseOnly
- Set to true to insist that all input values be
lowercase.
There is some ambiguity about whether CSS is case-sensitive or not. If
it is, all input should be lower case.Font.Variant
, or null if the input is not valid.public static Font.Variant parseFo(java.lang.String input, boolean lowerCaseOnly)
Font.Variant
.input
- The XSL-FO-style String to be converted.lowerCaseOnly
- Set to true to insist that all input values be
lowercase.
There is some ambiguity about whether XSL-FO is case-sensitive or not. If
it is, all input should be lower case.Font.Variant
, or null if the input is not valid.This documentation was created 2017-01-24 at 21:26 GMT by The aXSL Group and may be freely copied. See license for details.