public enum FontType extends Enum<FontType>
| Enum Constant and Description |
|---|
MONOSPACED
MonoespaƧada (Java built-in)
|
SAN_SERIF
Sem serifa (Java built-in)
|
SERIF
Serifada (Java built-in)
|
VERDANA
Verdana (Windows)
|
| Modifier and Type | Method and Description |
|---|---|
static FontType |
getFontTypeByName(String name)
Consulta uma fonte com base no nome.
|
String |
getLabel()
Consulta o nome da fonte (traduzida)
|
String |
getTypeName()
Consulta o nome do tipo.
|
static FontType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FontType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FontType SERIF
public static final FontType SAN_SERIF
public static final FontType VERDANA
public static final FontType MONOSPACED
public static FontType[] values()
for (FontType c : FontType.values()) System.out.println(c);
public static FontType 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 String getTypeName()
public final String getLabel()
Copyright © 2020. All rights reserved.