Enum FontWeight
- java.lang.Object
-
- java.lang.Enum<FontWeight>
-
- com.inductiveautomation.perspective.designer.styles.attributes.FontWeight
-
- All Implemented Interfaces:
AlternateName
,java.io.Serializable
,java.lang.Comparable<FontWeight>
public enum FontWeight extends java.lang.Enum<FontWeight> implements AlternateName
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAlternateName()
static FontWeight
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FontWeight[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
normal
public static final FontWeight normal
-
bold
public static final FontWeight bold
-
lighter
public static final FontWeight lighter
-
bolder
public static final FontWeight bolder
-
weight100
public static final FontWeight weight100
-
weight200
public static final FontWeight weight200
-
weight300
public static final FontWeight weight300
-
weight400
public static final FontWeight weight400
-
weight500
public static final FontWeight weight500
-
weight600
public static final FontWeight weight600
-
weight700
public static final FontWeight weight700
-
weight800
public static final FontWeight weight800
-
weight900
public static final FontWeight weight900
-
-
Method Detail
-
values
public static FontWeight[] 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 (FontWeight c : FontWeight.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FontWeight 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
-
getAlternateName
public java.lang.String getAlternateName()
- Specified by:
getAlternateName
in interfaceAlternateName
-
-