Save This Page
Home » openjdk-7 » javax » swing » text » html » [javadoc | source]
javax.swing.text.html
class: CSS.FontSize [javadoc | source]
java.lang.Object
   javax.swing.text.html.CSS$CssValue
      javax.swing.text.html.CSS$FontSize

All Implemented Interfaces:
    Serializable

Represents a value for the CSS.FONT_SIZE attribute. The binary format of the value can be one of several types. If the type is Float, the value is specified in terms of point or percentage, depending upon the ending of the associated string. If the type is Integer, the value is specified in terms of a size index.
Field Summary
 float value     
 boolean index     
 CSS.LengthUnit lu     
Fields inherited from javax.swing.text.html.CSS$CssValue:
svalue
Method from javax.swing.text.html.CSS$FontSize Summary:
fromStyleConstants,   getValue,   parseCssValue,   parseHtmlValue,   toStyleConstants
Methods from javax.swing.text.html.CSS$CssValue:
fromStyleConstants,   parseCssValue,   parseHtmlValue,   toString,   toStyleConstants
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.text.html.CSS$FontSize Detail:
 Object fromStyleConstants(StyleConstants key,
    Object value) 
    Converts a StyleConstants attribute value to a CSS attribute value. If there is no conversion returns null. By default, there is no conversion.
 int getValue(AttributeSet a,
    StyleSheet ss) 
    Returns the size in points. This is ultimately what we need for the purpose of creating/fetching a Font object.
 Object parseCssValue(String value) 
 Object parseHtmlValue(String value) 
 Object toStyleConstants(StyleConstants key,
    View v) 
    Converts a CSS attribute value to a StyleConstants value. If there is no conversion, returns null. By default, there is no conversion.