public enum Font extends Enum<Font>
| Enum Constant and Description |
|---|
ARIAL |
LUCIDIA_GRANDE |
SEGOE_UI |
TAHOMA |
TREBUCHET_MS |
VERDANA |
| Modifier and Type | Method and Description |
|---|---|
static Font |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Font[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Font ARIAL
public static final Font LUCIDIA_GRANDE
public static final Font SEGOE_UI
public static final Font TAHOMA
public static final Font TREBUCHET_MS
public static final Font VERDANA
public static Font[] values()
for (Font c : Font.values()) System.out.println(c);
public static Font 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 nullCopyright © 2015. All rights reserved.