Enum Class FontVariant.Weight
- All Implemented Interfaces:
Serializable,Comparable<FontVariant.Weight>,Constable
- Enclosing class:
- FontVariant
The 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 ConstantDescriptionThe bold weight.The extra bold weight.The extra light weight.The heavy weight.The light weight.The medium weight.The normal weight.The semi bold weight.The thin weight. -
Method Summary
Modifier and TypeMethodDescriptionintGets the ordinal.static FontVariant.WeightReturns the enum constant of this class with the specified name.static FontVariant.Weight[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
THIN
The thin weight. -
EXTRA_LIGHT
The extra light weight. -
LIGHT
The light weight. -
NORMAL
The normal weight. -
MEDIUM
The medium weight. -
SEMI_BOLD
The semi bold weight. -
BOLD
The bold weight. -
EXTRA_BOLD
The extra bold weight. -
HEAVY
The heavy weight.
-
-
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
-
getOrdinal
public int getOrdinal()Gets the ordinal.- Returns:
- the ordinal
-