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.
|
W100
Defines from thin to thick characters, value 100.
|
W200
Defines from thin to thick characters, value 200.
|
W300
Defines from thin to thick characters, value 300.
|
W400
Defines from thin to thick characters, value 400.
|
W500
Defines from thin to thick characters, value 500.
|
W600
Defines from thin to thick characters, value 600.
|
W700
Defines from thin to thick characters, value 700.
|
W800
Defines from thin to thick characters, value 800.
|
W900
Defines from thin to thick characters, value 900.
|
Modifier and Type | Method and Description |
---|---|
static Weight |
getByIntValue(int value,
Weight defaultValue)
Returns the weight instance searched by the integer value.
|
int |
getValueAsInt()
Returns the value definition from thin to thick characters.
|
boolean |
isValueAsInt()
Returns
true if the weight has been defined by a number. |
String |
value()
Returns the name value of property
|
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.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
checkAndGetIfValid, checkIfValid, compare, create, equals, getKeyByValue, getKeyByValue, hasKeyByValue, isValid
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 final Weight W100
public static final Weight W200
public static final Weight W300
public static final Weight W400
public static final Weight W500
public static final Weight W600
public static final Weight W700
public static final Weight W800
public static final Weight W900
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 nullpublic String value()
Key
public int getValueAsInt()
public boolean isValueAsInt()
true
if the weight has been defined by a number.true
if the weight has been defined by a numberpublic static Weight getByIntValue(int value, Weight defaultValue)
value
- integer value to use for searchingdefaultValue
- default value if the value does not match