public enum FontType extends Enum<FontType>
Enum Constant and Description |
---|
DIALOG |
DIALOG_INPUT |
MONOSPACED |
SANS_SERIF |
SERIF |
Modifier and Type | Method and Description |
---|---|
static FontType |
fromFontTypeName(String aFontTypeName)
Retrieves the enumeration element representing the given font name
(ignoring the case) or null if none was found.
|
String |
getFontTypeName()
Returns the font name of the given enumeration element.
|
String |
toString() |
static FontType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FontType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FontType DIALOG
public static final FontType DIALOG_INPUT
public static final FontType MONOSPACED
public static final FontType SERIF
public static final FontType SANS_SERIF
public static FontType[] values()
for (FontType c : FontType.values()) System.out.println(c);
public static FontType 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 getFontTypeName()
public static FontType fromFontTypeName(String aFontTypeName)
aFontTypeName
- The font name for which to get the
enumeration element.Copyright © 2016. All rights reserved.