public enum FontStyle extends Enum<FontStyle>
Enum Constant and Description |
---|
Bold |
BoldItalic |
BoldItalicUnderline |
BoldUnderline |
Default |
Italic |
ItalicUnderline |
Underline |
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
boolean |
IsBold() |
boolean |
IsItalic() |
boolean |
IsUnderline() |
static FontStyle |
valueOf(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 Default
public static final FontStyle Bold
public static final FontStyle Italic
public static final FontStyle Underline
public static final FontStyle BoldItalic
public static final FontStyle BoldUnderline
public static final FontStyle ItalicUnderline
public static final FontStyle BoldItalicUnderline
public static FontStyle[] values()
for (FontStyle c : FontStyle.values()) System.out.println(c);
public static 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 getCode()
public boolean IsBold()
public boolean IsItalic()
public boolean IsUnderline()