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.SerializableThis 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.CSSWeightValueBOLDThe weight value ofBOLDis identical to a weight value of 700 as per the CSS specifications.static CSS20Attribute.CSSWeightValueNORMALThe weight value ofNORMALis identical to a weight value of 400 as per the CSS specifications.static CSS20Attribute.CSSWeightValueW100static CSS20Attribute.CSSWeightValueW200static CSS20Attribute.CSSWeightValueW300static CSS20Attribute.CSSWeightValueW400static CSS20Attribute.CSSWeightValueW500static CSS20Attribute.CSSWeightValueW600static CSS20Attribute.CSSWeightValueW700static CSS20Attribute.CSSWeightValueW800static CSS20Attribute.CSSWeightValueW900 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()Return the numerical value of the weight.static CSS20Attribute.CSSWeightValueparse(java.lang.String text)Parse the text and return the CSSWeightValue object which is represented if any.java.lang.StringtoString() 
 - 
 
- 
- 
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 ofNORMALis identical to a weight value of 400 as per the CSS specifications. 
- 
BOLD
public static final CSS20Attribute.CSSWeightValue BOLD
The weight value ofBOLDis 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:
 toStringin classjava.lang.Object
 
 - 
 
 -