public static enum FontStyle.StandardFonts extends Enum<FontStyle.StandardFonts> implements INumberEnum<Byte>
FontStyle
may be either one of these standard font faces,
or a font ID resolved by a font table.Enum Constant and Description |
---|
CUSTOMFONT
returned if font is not in the standard table; cannot be set via
FontStyle.setFontFace(StandardFonts) |
ROMAN
(e.g.
|
SWISS
(e.g.
|
TYPEWRITER
(e.g.
|
UNICODE
(e.g.
|
USERINTERFACE
(e.g.
|
Modifier and Type | Method and Description |
---|---|
long |
getLongValue() |
Byte |
getValue() |
static FontStyle.StandardFonts |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FontStyle.StandardFonts[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FontStyle.StandardFonts ROMAN
public static final FontStyle.StandardFonts SWISS
public static final FontStyle.StandardFonts UNICODE
public static final FontStyle.StandardFonts USERINTERFACE
public static final FontStyle.StandardFonts TYPEWRITER
public static final FontStyle.StandardFonts CUSTOMFONT
FontStyle.setFontFace(StandardFonts)
public static FontStyle.StandardFonts[] values()
for (FontStyle.StandardFonts c : FontStyle.StandardFonts.values()) System.out.println(c);
public static FontStyle.StandardFonts 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 long getLongValue()
getLongValue
in interface INumberEnum<Byte>
long
public Byte getValue()
getValue
in interface INumberEnum<Byte>
Copyright © 2019–2021 HCL. All rights reserved.