public enum FontSize extends Enum<FontSize>
| Enum Constant and Description |
|---|
LARGE |
LARGER |
MEDIUM |
SMALL |
SMALLER |
X_LARGE |
X_SMALL |
XX_LARGE |
XX_SMALL |
XXX_LARGE |
| Modifier and Type | Method and Description |
|---|---|
float |
getScale() |
String |
getTextValue() |
boolean |
isRelative() |
static FontSize |
parse(String text) |
static FontSize |
valueOf(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 final FontSize XXX_LARGE
public static final FontSize SMALLER
public static final FontSize LARGER
public static FontSize[] values()
for (FontSize c : FontSize.values()) System.out.println(c);
public static FontSize 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 getTextValue()
public float getScale()
public boolean isRelative()
Copyright © 2024. All rights reserved.