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