Class CSS20Attribute.CSSWeightValue
- java.lang.Object
-
- com.adobe.fontengine.inlineformatting.css20.CSS20Attribute.CSSWeightValue
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- CSS20Attribute
public static final class CSS20Attribute.CSSWeightValue extends java.lang.Object implements java.io.Serializable
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static CSS20Attribute.CSSWeightValue
BOLD
The weight value ofBOLD
is identical to a weight value of 700 as per the CSS specifications.static CSS20Attribute.CSSWeightValue
NORMAL
The weight value ofNORMAL
is identical to a weight value of 400 as per the CSS specifications.static CSS20Attribute.CSSWeightValue
W100
static CSS20Attribute.CSSWeightValue
W200
static CSS20Attribute.CSSWeightValue
W300
static CSS20Attribute.CSSWeightValue
W400
static CSS20Attribute.CSSWeightValue
W500
static CSS20Attribute.CSSWeightValue
W600
static CSS20Attribute.CSSWeightValue
W700
static CSS20Attribute.CSSWeightValue
W800
static CSS20Attribute.CSSWeightValue
W900
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
Return the numerical value of the weight.static CSS20Attribute.CSSWeightValue
parse(java.lang.String text)
Parse the text and return the CSSWeightValue object which is represented if any.java.lang.String
toString()
-
-
-
Field Detail
-
W100
public static final CSS20Attribute.CSSWeightValue W100
-
W200
public static final CSS20Attribute.CSSWeightValue W200
-
W300
public static final CSS20Attribute.CSSWeightValue W300
-
W400
public static final CSS20Attribute.CSSWeightValue W400
-
W500
public static final CSS20Attribute.CSSWeightValue W500
-
W600
public static final CSS20Attribute.CSSWeightValue W600
-
W700
public static final CSS20Attribute.CSSWeightValue W700
-
W800
public static final CSS20Attribute.CSSWeightValue W800
-
W900
public static final CSS20Attribute.CSSWeightValue W900
-
NORMAL
public static final CSS20Attribute.CSSWeightValue NORMAL
The weight value ofNORMAL
is identical to a weight value of 400 as per the CSS specifications.
-
BOLD
public static final CSS20Attribute.CSSWeightValue BOLD
The weight value ofBOLD
is identical to a weight value of 700 as per the CSS specifications.
-
-
Method Detail
-
getValue
public int getValue()
Return the numerical value of the weight.- Returns:
- the numerical weight value
-
parse
public static CSS20Attribute.CSSWeightValue parse(java.lang.String text)
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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-