public abstract class DerivedValue extends Object implements FSDerivedValue
| Modifier | Constructor and Description |
|---|---|
protected |
DerivedValue() |
protected |
DerivedValue(CSSName name,
org.w3c.dom.css.CSSPrimitiveValue cssPrimitiveValue,
short cssSACUnitType,
String cssText,
String cssStringValue) |
| Modifier and Type | Method and Description |
|---|---|
FSColor |
asColor() |
float |
asFloat() |
IdentValue |
asIdentValue() |
String |
asString() |
String[] |
asStringArray() |
org.w3c.dom.css.CSSPrimitiveValue |
getCSSPrimitiveValue() |
short |
getCssSacUnitType() |
float |
getFloatProportionalTo(CSSName cssName,
float baseValue,
CssContext ctx) |
String |
getStringValue()
The getCssText() or getStringValue(), depending.
|
boolean |
hasAbsoluteUnit() |
boolean |
isAbsoluteUnit() |
boolean |
isDeclaredInherit()
If value is declared INHERIT should always be the IdentValue.INHERIT,
not a DerivedValue
|
boolean |
isDependentOnFontSize() |
boolean |
isIdent() |
protected DerivedValue()
protected DerivedValue(CSSName name, org.w3c.dom.css.CSSPrimitiveValue cssPrimitiveValue, short cssSACUnitType, String cssText, String cssStringValue)
public org.w3c.dom.css.CSSPrimitiveValue getCSSPrimitiveValue()
public String getStringValue()
public boolean isDeclaredInherit()
isDeclaredInherit in interface FSDerivedValuepublic short getCssSacUnitType()
public boolean isAbsoluteUnit()
public float asFloat()
asFloat in interface FSDerivedValuepublic FSColor asColor()
asColor in interface FSDerivedValuepublic float getFloatProportionalTo(CSSName cssName, float baseValue, CssContext ctx)
getFloatProportionalTo in interface FSDerivedValuepublic String asString()
asString in interface FSDerivedValuepublic String[] asStringArray()
asStringArray in interface FSDerivedValuepublic IdentValue asIdentValue()
asIdentValue in interface FSDerivedValuepublic boolean hasAbsoluteUnit()
hasAbsoluteUnit in interface FSDerivedValuepublic boolean isIdent()
isIdent in interface FSDerivedValuepublic boolean isDependentOnFontSize()
isDependentOnFontSize in interface FSDerivedValueCopyright © 2011-2013. All Rights Reserved.