Package com.luciad.format.nvg.model
Enum Class ELcdNVGFontWeight
- All Implemented Interfaces:
Serializable
,Comparable<ELcdNVGFontWeight>
,Constable
Weight enumeration (normal or bold). The font weight attribute is used to determine if the font of a label or a text object
needs to be bold or not.
- Since:
- 2015.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ELcdNVGFontWeight
Convert the given string to his correspondingELcdNVGWeight
.toString()
static String
toValue
(ELcdNVGFontWeight aValue) Convert the given weight to his string representation.value()
Get the textual value of this weight.static ELcdNVGFontWeight
Returns the enum constant of this class with the specified name.static ELcdNVGFontWeight[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORMAL
Normal text weight element. -
BOLD
Bold text weight element.
-
-
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
-
value
Get the textual value of this weight.- Returns:
- The textual value of this weight.
-
toString
- Overrides:
toString
in classEnum<ELcdNVGFontWeight>
-
fromValue
Convert the given string to his correspondingELcdNVGWeight
.- Parameters:
aValue
- The string representing a weight.- Returns:
- The given string as
ELcdNVGFontWeight
.
-
toValue
Convert the given weight to his string representation.- Parameters:
aValue
- The weight to convert.- Returns:
- The given weight as string representation.
-