Class CSS20Attribute.CSSWeightValue
java.lang.Object
com.adobe.fontengine.inlineformatting.css20.CSS20Attribute.CSSWeightValue
- All Implemented Interfaces:
Serializable
- Enclosing class:
CSS20Attribute
This class provides an enumeration of the possible values for the CSS Weight attribute.
Concurrency
Instances of this class are immutable after construction and contain no mutable static data. Therefore, they are threadsafe.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CSS20Attribute.CSSWeightValue
The weight value ofBOLD
is identical to a weight value of 700 as per the CSS specifications.static final CSS20Attribute.CSSWeightValue
The weight value ofNORMAL
is identical to a weight value of 400 as per the CSS specifications.static final CSS20Attribute.CSSWeightValue
static final CSS20Attribute.CSSWeightValue
static final CSS20Attribute.CSSWeightValue
static final CSS20Attribute.CSSWeightValue
static final CSS20Attribute.CSSWeightValue
static final CSS20Attribute.CSSWeightValue
static final CSS20Attribute.CSSWeightValue
static final CSS20Attribute.CSSWeightValue
static final CSS20Attribute.CSSWeightValue
-
Method Summary
-
Field Details
-
W100
-
W200
-
W300
-
W400
-
W500
-
W600
-
W700
-
W800
-
W900
-
NORMAL
The weight value ofNORMAL
is identical to a weight value of 400 as per the CSS specifications. -
BOLD
The weight value ofBOLD
is identical to a weight value of 700 as per the CSS specifications.
-
-
Method Details
-
getValue
public int getValue()Return the numerical value of the weight.- Returns:
- the numerical weight value
-
parse
Parse the text and return the CSSWeightValue object which is represented if any.- Parameters:
text
- textual representation of the weight- Returns:
- CSSWeightValue represented by the text value
-
toString
-