public enum Font extends Enum<Font>
GraphicContext
. The properties this enum
has are hints that GUI frameworks can ignore.Enum Constant and Description |
---|
NORMAL
The normal font to display everything.
|
TITLE
The font to display titles like the
Title . |
Modifier and Type | Method and Description |
---|---|
int |
getSize()
Returns the size hint.
|
boolean |
isBold()
Returns the bold hint.
|
static Font |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Font[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Font NORMAL
public static Font[] values()
for (Font c : Font.values()) System.out.println(c);
public static Font 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 int getSize()
public boolean isBold()
Copyright © 2020. All rights reserved.