public static enum Font.Stretch extends java.lang.Enum<Font.Stretch>
Enum Constant and Description |
---|
ANY
Font-stretch constant indicating no preference.
|
CONDENSED
Font-stretch constant indicating condensed.
|
EXPANDED
Font-stretch constant indicating expanded.
|
EXTRA_CONDENSED
Font-stretch constant indicating extra-condensed.
|
EXTRA_EXPANDED
Font-stretch constant indicating extra-expanded.
|
NORMAL
Font-stretch constant indicating normal.
|
SEMI_CONDENSED
Font-stretch constant indicating semi-condensed.
|
SEMI_EXPANDED
Font-stretch constant indicating semi-expanded.
|
ULTRA_CONDENSED
Font-stretch constant indicating ultra-condensed.
|
ULTRA_EXPANDED
Font-stretch constant indicating ultra-expanded.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCssValue()
Returns the String describing this stretch in CSS.
|
java.lang.String |
getFoValue()
Returns the String describing this stretch in XSL-FO.
|
byte |
getNumericStretch()
Returns the numeric stretch value, or the relative stretch between
different instances of this class.
|
static Font.Stretch |
parseCss(java.lang.String input,
boolean lowerCaseOnly)
Parses a CSS2 String into an instance of
Font.Stretch . |
static Font.Stretch |
parseFo(java.lang.String input,
boolean lowerCaseOnly)
Parses an XSL-FO String into an instance of
Font.Stretch . |
static Font.Stretch |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Font.Stretch[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Font.Stretch ANY
public static final Font.Stretch ULTRA_CONDENSED
public static final Font.Stretch EXTRA_CONDENSED
public static final Font.Stretch CONDENSED
public static final Font.Stretch SEMI_CONDENSED
public static final Font.Stretch NORMAL
public static final Font.Stretch SEMI_EXPANDED
public static final Font.Stretch EXPANDED
public static final Font.Stretch EXTRA_EXPANDED
public static final Font.Stretch ULTRA_EXPANDED
public static Font.Stretch[] values()
for (Font.Stretch c : Font.Stretch.values()) System.out.println(c);
public static Font.Stretch 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 byte getNumericStretch()
Byte.MIN_VALUE
for invalid values.public java.lang.String getCssValue()
public java.lang.String getFoValue()
public static Font.Stretch parseCss(java.lang.String input, boolean lowerCaseOnly)
Font.Stretch
.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.Stretch
, or null if the input is not valid.public static Font.Stretch parseFo(java.lang.String input, boolean lowerCaseOnly)
Font.Stretch
.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.Stretch
, 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.