public static enum Font.FontStyle extends Enum<Font.FontStyle>
Enum Constant and Description |
---|
BOLD |
ITALIC |
LINETHROUGH |
NORMAL |
OBLIQUE |
UNDERLINE |
Modifier and Type | Method and Description |
---|---|
String |
getValue() |
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 NORMAL
public static final Font.FontStyle BOLD
public static final Font.FontStyle ITALIC
public static final Font.FontStyle OBLIQUE
public static final Font.FontStyle UNDERLINE
public static final Font.FontStyle LINETHROUGH
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 name
NullPointerException
- if the argument is null
public String getValue()
Copyright © 2016. All rights reserved.