public enum LogicalFontIdentifier extends Enum<LogicalFontIdentifier>
Enum Constant and Description |
---|
Dialog |
DialogInput |
Monospaced |
SansSerif |
Serif |
Modifier and Type | Method and Description |
---|---|
static LogicalFontIdentifier |
bySpelling(String spelling)
Find suitable
LogicalFontIdentifier instance. |
String |
getDefaultSpelling()
Returns default/main font identifier spelling.
|
Collection<String> |
getSpellings()
Returns all supported font identifier spellings.
|
static boolean |
isLogicalFont(String spelling)
Checks given spelling.
|
static LogicalFontIdentifier |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LogicalFontIdentifier[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LogicalFontIdentifier Dialog
public static final LogicalFontIdentifier DialogInput
public static final LogicalFontIdentifier Monospaced
public static final LogicalFontIdentifier SansSerif
public static final LogicalFontIdentifier Serif
public static LogicalFontIdentifier[] values()
for (LogicalFontIdentifier c : LogicalFontIdentifier.values()) System.out.println(c);
public static LogicalFontIdentifier 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 getDefaultSpelling()
public Collection<String> getSpellings()
public static LogicalFontIdentifier bySpelling(String spelling)
LogicalFontIdentifier
instance. Matching is case-insensitive. Returns
null
if none found.spelling
- Identifier spelling to checkLogicalFontIdentifier
instance, or null
if no spelling matches the
given String.public static boolean isLogicalFont(String spelling)
spelling
- Logical font spelling to checktrue
if the given spelling matches any LogicalFontIdentifier
,
false
otherwiseCopyright © 2024 levigo holding gmbh. All rights reserved.