public enum FontSize extends Enum<FontSize>
| Enum Constant and Description |
|---|
BIG
Grande
|
HUGE
Enorme
|
MICRO
Micro
|
NORMAL
Normal
|
| Modifier and Type | Method and Description |
|---|---|
static FontSize |
getFontSizeByInt(int size)
Consulta um tamanho com base no número
|
String |
getLabel()
Consulta o nome da fonte (traduzida)
|
int |
getSize()
Consulta o tamanho
|
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 MICRO
public static final FontSize NORMAL
public static final FontSize BIG
public static final FontSize HUGE
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 final int getSize()
public final String getLabel()
public static FontSize getFontSizeByInt(int size)
size - o tamanhoCopyright © 2016. All rights reserved.