public enum ELcdNVGFontWeight extends Enum<ELcdNVGFontWeight>
Enum Constant and Description |
---|
BOLD
Bold text weight element.
|
NORMAL
Normal text weight element.
|
Modifier and Type | Method and Description |
---|---|
static ELcdNVGFontWeight |
fromValue(String aValue)
Convert the given string to his corresponding
ELcdNVGWeight . |
String |
toString() |
static String |
toValue(ELcdNVGFontWeight aValue)
Convert the given weight to his string representation.
|
String |
value()
Get the textual value of this weight.
|
static ELcdNVGFontWeight |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ELcdNVGFontWeight[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ELcdNVGFontWeight NORMAL
public static final ELcdNVGFontWeight BOLD
public static ELcdNVGFontWeight[] values()
for (ELcdNVGFontWeight c : ELcdNVGFontWeight.values()) System.out.println(c);
public static ELcdNVGFontWeight valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String value()
public String toString()
toString
in class Enum<ELcdNVGFontWeight>
public static ELcdNVGFontWeight fromValue(String aValue)
ELcdNVGWeight
.aValue
- The string representing a weight.ELcdNVGFontWeight
.public static String toValue(ELcdNVGFontWeight aValue)
aValue
- The weight to convert.