public enum FontSize extends java.lang.Enum<FontSize>
Enum Constant and Description |
---|
LARGE |
MEDIUM |
SMALL |
X_LARGE |
X_SMALL |
XX_LARGE |
XX_SMALL |
Modifier and Type | Method and Description |
---|---|
int |
getSize() |
FontSize |
larger() |
FontSize |
smaller() |
static FontSize |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FontSize[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FontSize XX_SMALL
public static final FontSize X_SMALL
public static final FontSize SMALL
public static final FontSize MEDIUM
public static final FontSize LARGE
public static final FontSize X_LARGE
public static final FontSize XX_LARGE
public static FontSize[] values()
for (FontSize c : FontSize.values()) System.out.println(c);
public static FontSize valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getSize()
public FontSize larger()
FontSize
that is one unit large than the current one; current object if it already stands for a maximum size