java.io.Serializable
, java.lang.Comparable<FontFamily>
public enum FontFamily extends java.lang.Enum<FontFamily>
Enum Constant | Description |
---|---|
DECORATIVE |
|
MODERN |
|
NOT_APPLICABLE |
|
ROMAN |
|
SCRIPT |
|
SWISS |
Modifier and Type | Method | Description |
---|---|---|
int |
getValue() |
Returns index of this font family
|
static FontFamily |
valueOf(int family) |
Returns the enum constant of this type with the specified name.
|
static FontFamily |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static FontFamily[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FontFamily NOT_APPLICABLE
public static final FontFamily ROMAN
public static final FontFamily SWISS
public static final FontFamily MODERN
public static final FontFamily SCRIPT
public static final FontFamily DECORATIVE
public static FontFamily[] values()
for (FontFamily c : FontFamily.values()) System.out.println(c);
public static FontFamily 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 int getValue()
public static FontFamily valueOf(int family)
family
- 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 nullCopyright 2018 The Apache Software Foundation or its licensors, as applicable.