public abstract class DerivedValue extends Object implements FSDerivedValue
| 限定符 | 构造器和说明 |
|---|---|
protected |
DerivedValue() |
protected |
DerivedValue(CSSName name,
org.w3c.dom.css.CSSPrimitiveValue cssPrimitiveValue,
short cssSACUnitType,
String cssText,
String cssStringValue) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 FSDerivedValuepublic short getCssSacUnitType()
public boolean isAbsoluteUnit()
public float asFloat()
asFloat 在接口中 FSDerivedValuepublic FSColor asColor()
asColor 在接口中 FSDerivedValuepublic float getFloatProportionalTo(CSSName cssName, float baseValue, CssContext ctx)
getFloatProportionalTo 在接口中 FSDerivedValuepublic String asString()
asString 在接口中 FSDerivedValuepublic String[] asStringArray()
asStringArray 在接口中 FSDerivedValuepublic IdentValue asIdentValue()
asIdentValue 在接口中 FSDerivedValuepublic boolean hasAbsoluteUnit()
hasAbsoluteUnit 在接口中 FSDerivedValuepublic boolean isIdent()
isIdent 在接口中 FSDerivedValuepublic boolean isDependentOnFontSize()
isDependentOnFontSize 在接口中 FSDerivedValueCopyright © 2019. All Rights Reserved.