public enum FontFamily extends Enum<FontFamily>
Enum Constant and Description |
---|
DECORATIVE |
MODERN |
NOT_APPLICABLE |
ROMAN |
SCRIPT |
SWISS |
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Returns index of this font family
|
static FontFamily |
valueOf(int family) |
static FontFamily |
valueOf(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(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 getValue()
public static FontFamily valueOf(int family)
Copyright © 2020. All rights reserved.