Class NumberValue
- java.lang.Object
-
- org.xhtmlrenderer.css.style.DerivedValue
-
- org.xhtmlrenderer.css.style.derived.NumberValue
-
- All Implemented Interfaces:
FSDerivedValue
public class NumberValue extends DerivedValue
-
-
Constructor Summary
Constructors Constructor Description NumberValue(CSSName cssName, PropertyValue value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
asFloat()
float
getFloatProportionalTo(CSSName cssName, float baseValue, CssContext ctx)
boolean
hasAbsoluteUnit()
-
Methods inherited from class org.xhtmlrenderer.css.style.DerivedValue
asColor, asIdentValue, asString, asStringArray, getCssSacUnitType, getStringValue, isAbsoluteUnit, isDeclaredInherit, isDependentOnFontSize, isIdent
-
-
-
-
Constructor Detail
-
NumberValue
public NumberValue(CSSName cssName, PropertyValue value)
-
-
Method Detail
-
asFloat
public float asFloat()
- Specified by:
asFloat
in interfaceFSDerivedValue
- Overrides:
asFloat
in classDerivedValue
-
getFloatProportionalTo
public float getFloatProportionalTo(CSSName cssName, float baseValue, CssContext ctx)
- Specified by:
getFloatProportionalTo
in interfaceFSDerivedValue
- Overrides:
getFloatProportionalTo
in classDerivedValue
-
hasAbsoluteUnit
public boolean hasAbsoluteUnit()
- Specified by:
hasAbsoluteUnit
in interfaceFSDerivedValue
- Overrides:
hasAbsoluteUnit
in classDerivedValue
-
-