public static enum FontStyle.Weight extends java.lang.Enum<FontStyle.Weight>
Enum Constant and Description |
---|
bold
Bold weight.
|
bolder
Bolder weight.
|
lighter
Lighter weight.
|
normal
Normal weight.
|
Modifier and Type | Method and Description |
---|---|
static FontStyle.Weight |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FontStyle.Weight[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FontStyle.Weight lighter
public static final FontStyle.Weight normal
public static final FontStyle.Weight bold
public static final FontStyle.Weight bolder
public static FontStyle.Weight[] values()
for (FontStyle.Weight c : FontStyle.Weight.values()) System.out.println(c);
public static FontStyle.Weight valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null