Enum FontVariant.Weight
- java.lang.Object
-
- java.lang.Enum<FontVariant.Weight>
-
- com.priint.pubserver.comet.entity.fontdb.FontVariant.Weight
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<FontVariant.Weight>
- Enclosing class:
- FontVariant
public static enum FontVariant.Weight extends java.lang.Enum<FontVariant.Weight>
The Font Weight.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOLDThe bold weight.EXTRA_BOLDThe extra bold weight.EXTRA_LIGHTThe extra light weight.HEAVYThe heavy weight.LIGHTThe light weight.MEDIUMThe medium weight.NORMALThe normal weight.SEMI_BOLDThe semi bold weight.THINThe thin weight.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetOrdinal()Gets the ordinal.static FontVariant.WeightvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static FontVariant.Weight[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
THIN
public static final FontVariant.Weight THIN
The thin weight.
-
EXTRA_LIGHT
public static final FontVariant.Weight EXTRA_LIGHT
The extra light weight.
-
LIGHT
public static final FontVariant.Weight LIGHT
The light weight.
-
NORMAL
public static final FontVariant.Weight NORMAL
The normal weight.
-
MEDIUM
public static final FontVariant.Weight MEDIUM
The medium weight.
-
SEMI_BOLD
public static final FontVariant.Weight SEMI_BOLD
The semi bold weight.
-
BOLD
public static final FontVariant.Weight BOLD
The bold weight.
-
EXTRA_BOLD
public static final FontVariant.Weight EXTRA_BOLD
The extra bold weight.
-
HEAVY
public static final FontVariant.Weight HEAVY
The heavy weight.
-
-
Method Detail
-
values
public static FontVariant.Weight[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FontVariant.Weight c : FontVariant.Weight.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FontVariant.Weight valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getOrdinal
public int getOrdinal()
Gets the ordinal.- Returns:
- the ordinal
-
-