public enum Weight extends Enum<Weight> implements Key
Enum Constant and Description |
---|
bold
Defines thick characters.
|
bolder
Defines thicker characters.
|
inherit
Inherits this property from its parent element.
|
initial
Sets this property to its default value.
|
lighter
Defines lighter characters.
|
normal
Defines normal characters.
|
Modifier and Type | Method and Description |
---|---|
static Weight |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Weight[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Weight normal
public static final Weight bold
public static final Weight bolder
public static final Weight lighter
public static final Weight initial
public static final Weight inherit
public static Weight[] values()
for (Weight c : Weight.values()) System.out.println(c);
public static Weight 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 null