public enum FontFamily extends Enum<FontFamily>
Text elements.| Enum Constant and Description |
|---|
MONOSPACE |
SANS_SERIF |
SERIF |
| Modifier and Type | Method and Description |
|---|---|
static FontFamily |
toFontFamily(String value)
Checks if a given String value matches one of the
FontFamily hints. |
String |
toString() |
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 SERIF
public static final FontFamily SANS_SERIF
public static final FontFamily MONOSPACE
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 String toString()
toString in class Enum<FontFamily>public static FontFamily toFontFamily(String value)
FontFamily hints.value - Copyright © 2009–2020. All rights reserved.