public abstract class DerivedValue extends java.lang.Object implements FSDerivedValue
| Modifier | Constructor and Description |
|---|---|
protected |
DerivedValue() |
protected |
DerivedValue(CSSName name,
short cssSACUnitType,
java.lang.String cssText,
java.lang.String cssStringValue) |
| Modifier and Type | Method and Description |
|---|---|
FSColor |
asColor() |
float |
asFloat() |
IdentValue |
asIdentValue() |
java.lang.String |
asString() |
java.lang.String[] |
asStringArray() |
short |
getCssSacUnitType() |
float |
getFloatProportionalTo(CSSName cssName,
float baseValue,
CssContext ctx) |
java.lang.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, short cssSACUnitType, java.lang.String cssText, java.lang.String cssStringValue)
public java.lang.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 java.lang.String asString()
asString in interface FSDerivedValuepublic java.lang.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 © 2014. All Rights Reserved.