Enum Constant and Description |
---|
BOLD |
CENTER_BASELINE |
HANGING_BASELINE |
ITALIC |
PLAIN |
ROMAN_BASELINE |
Modifier and Type | Field and Description |
---|---|
int |
style |
Modifier and Type | Method and Description |
---|---|
static FontStyle |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FontStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FontStyle BOLD
public static final FontStyle ITALIC
public static final FontStyle PLAIN
public static final FontStyle HANGING_BASELINE
public static final FontStyle CENTER_BASELINE
public static final FontStyle ROMAN_BASELINE
public static FontStyle[] values()
for (FontStyle c : FontStyle.values()) System.out.println(c);
public static FontStyle 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 null