public static enum Font.Style extends java.lang.Enum<Font.Style>
Enum Constant and Description |
---|
ANY
Font-style constant indicating no preference.
|
BACKSLANT
Font-style constant indicating a backslant typeface.
|
ITALIC
Font-style constant indicating an italic typeface.
|
NORMAL
Font-style constant indicating an upright (Roman) typeface.
|
OBLIQUE
Font-style constant indicating an oblique typeface.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCssValue()
Returns the String describing this style in CSS.
|
java.lang.String |
getFoValue()
Returns the String describing this style in XSL-FO.
|
static Font.Style |
parseCss(java.lang.String input,
boolean lowerCaseOnly)
Parses a CSS2-style String into an instance of
Font.Style . |
static Font.Style |
parseFo(java.lang.String input,
boolean lowerCaseOnly)
Parses an XSL-FO String into an instance of
Font.Style . |
static Font.Style |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Font.Style[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Font.Style ANY
public static final Font.Style NORMAL
public static final Font.Style ITALIC
public static final Font.Style OBLIQUE
public static final Font.Style BACKSLANT
public static Font.Style[] values()
for (Font.Style c : Font.Style.values()) System.out.println(c);
public static Font.Style 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.Style parseCss(java.lang.String input, boolean lowerCaseOnly)
Font.Style
.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.Style
, or null if the input is not valid.public static Font.Style parseFo(java.lang.String input, boolean lowerCaseOnly)
Font.Style
.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.Style
, 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.