public enum FontFamily extends Enum<FontFamily> implements Enumeration
Enum Constant and Description |
---|
CURSIVE
cursive.
|
FANTASY
fantasy.
|
MONOSPACE
monospace.
|
SANSSERIF
sans-serif.
|
SERIF
serif.
|
Modifier and Type | Method and Description |
---|---|
static FontFamily |
fromString(String value) |
String |
getValue() |
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 SANSSERIF
public static final FontFamily CURSIVE
public static final FontFamily FANTASY
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 static FontFamily fromString(String value) throws EnumerationException
EnumerationException
public String getValue()
public String toString()
toString
in class Enum<FontFamily>
Copyright © 2006–2017 Open Microscopy Environment. All rights reserved.