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

All Implemented Interfaces:
    Serializable

Direct Known Subclasses:
    BorderWidthValue

Field Summary
 boolean mayBeNegative    if this length value may be negative. 
 boolean percentage    If true, span is a percentage value, and that to determine the length another value needs to be passed in. 
 float span    Either the absolute value (percentage == false) or a percentage value. 
 String units     
Fields inherited from javax.swing.text.html.CSS$CssValue:
svalue
Constructor:
 LengthValue() 
 LengthValue(boolean mayBeNegative) 
Method from javax.swing.text.html.CSS$LengthValue Summary:
fromStyleConstants,   getValue,   getValue,   getValue,   getValue,   isPercentage,   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$LengthValue 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.
 float getValue() 
    Returns the length (span) to use.
 float getValue(boolean isW3CLengthUnits) 
 float getValue(float currentValue) 
    Returns the length (span) to use. If the value represents a percentage, it is scaled based on currentValue.
 float getValue(float currentValue,
    boolean isW3CLengthUnits) 
 boolean isPercentage() 
    Returns true if the length represents a percentage of the containing box.
 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.