public class NumberValue extends DerivedValue
Constructor and Description |
---|
NumberValue(CSSName cssName,
PropertyValue value) |
Modifier and Type | Method and Description |
---|---|
float |
asFloat() |
float |
getFloatProportionalTo(CSSName cssName,
float baseValue,
CssContext ctx) |
boolean |
hasAbsoluteUnit() |
asColor, asIdentValue, asString, asStringArray, getCssSacUnitType, getStringValue, isAbsoluteUnit, isDeclaredInherit, isDependentOnFontSize, isIdent
public NumberValue(CSSName cssName, PropertyValue value)
public float asFloat()
asFloat
in interface FSDerivedValue
asFloat
in class DerivedValue
public float getFloatProportionalTo(CSSName cssName, float baseValue, CssContext ctx)
getFloatProportionalTo
in interface FSDerivedValue
getFloatProportionalTo
in class DerivedValue
public boolean hasAbsoluteUnit()
hasAbsoluteUnit
in interface FSDerivedValue
hasAbsoluteUnit
in class DerivedValue