Enum FontVariant.Weight
- java.lang.Object
-
- java.lang.Enum<FontVariant.Weight>
-
- com.priint.pubserver.comet3.entity.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 enum Weight.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOLDBold weight.EXTRA_BOLDExtra bold weight.EXTRA_LIGHTExtra light weight.HEAVYHeavy weight.LIGHTLight weight.MEDIUMMedium weight.NORMALNormal weight.SEMI_BOLDSemi bold weight.THINThin weight.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FontVariant.WeightgetByName(FontVariant.Weight other)Gets by name.static FontVariant.WeightgetByName(FontVariant.Weight other)Gets by name.intgetOrdinal()Gets 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
Thin weight.
-
EXTRA_LIGHT
public static final FontVariant.Weight EXTRA_LIGHT
Extra light weight.
-
LIGHT
public static final FontVariant.Weight LIGHT
Light weight.
-
NORMAL
public static final FontVariant.Weight NORMAL
Normal weight.
-
MEDIUM
public static final FontVariant.Weight MEDIUM
Medium weight.
-
SEMI_BOLD
public static final FontVariant.Weight SEMI_BOLD
Semi bold weight.
-
BOLD
public static final FontVariant.Weight BOLD
Bold weight.
-
EXTRA_BOLD
public static final FontVariant.Weight EXTRA_BOLD
Extra bold weight.
-
HEAVY
public static final FontVariant.Weight HEAVY
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 ordinal.- Returns:
- the ordinal
-
getByName
public static FontVariant.Weight getByName(FontVariant.Weight other)
Gets by name.- Parameters:
other- the other- Returns:
- the by name
-
getByName
public static FontVariant.Weight getByName(FontVariant.Weight other)
Gets by name.- Parameters:
other- the other- Returns:
- the by name
-
-