Enum Class FontWeight
- All Implemented Interfaces:
Serializable,Comparable<FontWeight>,Constable
Represents font weight.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBold font weight.NoneNormal font weight.100 font weight.300 font weight.400 font weight.500 font weight.600 font weight.700 font weight.800 font weight.900 font weight. -
Method Summary
Modifier and TypeMethodDescriptionstatic FontWeightReturns the enum constant of this class with the specified name.static FontWeight[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORMAL
Normal font weight. -
BOLD
Bold font weight. -
WEIGHT_100
100 font weight. -
WEIGHT_200
-
WEIGHT_300
300 font weight. -
WEIGHT_400
400 font weight. -
WEIGHT_500
500 font weight. -
WEIGHT_600
600 font weight. -
WEIGHT_700
700 font weight. -
WEIGHT_800
800 font weight. -
WEIGHT_900
900 font weight. -
NONE
None
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-