public enum CFontStyle extends java.lang.Enum<CFontStyle>
| Enum Constant and Description |
|---|
ITALIC
Italic font style.
|
NORMAL
Normal (upright) font style.
|
OBLIQUE
Oblique (slanted) font style.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getValue()
Get the integer value of this enum.
|
static CFontStyle |
toEnum(int id)
Convert an integer id to
CFontStyle. |
static CFontStyle |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CFontStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CFontStyle NORMAL
public static final CFontStyle ITALIC
public static final CFontStyle OBLIQUE
public static CFontStyle[] values()
for (CFontStyle c : CFontStyle.values()) System.out.println(c);
public static CFontStyle 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 static CFontStyle toEnum(int id)
CFontStyle.
If the id is not recognized, NORMAL is returned by default.id - Integer id.NORMAL if unknown.public int getValue()