public static enum Font.FontStyle extends Enum<Font.FontStyle>
Enum Constant and Description |
---|
BOLD
Bold text
|
BOLD_ITALIC
Bold and italic text
|
ITALIC
Italic text
|
PLAIN
Plain text.
|
Modifier and Type | Method and Description |
---|---|
int |
mask()
Gets the mask of this Style.
|
static Font.FontStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Font.FontStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Font.FontStyle PLAIN
public static final Font.FontStyle BOLD
public static final Font.FontStyle ITALIC
public static final Font.FontStyle BOLD_ITALIC
public static Font.FontStyle[] values()
for (Font.FontStyle c : Font.FontStyle.values()) System.out.println(c);
public static Font.FontStyle valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int mask()