public static enum Font.WeightType extends java.lang.Enum<Font.WeightType>
Enum Constant and Description |
---|
NOT_SET |
WEIGHT_BOLD |
WEIGHT_BOLDER |
WEIGHT_LIGHTER |
WEIGHT_NORMAL |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue() |
static Font.WeightType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Font.WeightType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Font.WeightType NOT_SET
public static final Font.WeightType WEIGHT_BOLD
public static final Font.WeightType WEIGHT_BOLDER
public static final Font.WeightType WEIGHT_LIGHTER
public static final Font.WeightType WEIGHT_NORMAL
public static Font.WeightType[] values()
for (Font.WeightType c : Font.WeightType.values()) System.out.println(c);
public static Font.WeightType 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 nullpublic java.lang.String getValue()