public class LengthValue extends DerivedValue
| Constructor and Description |
|---|
LengthValue(CalculatedStyle style,
CSSName name,
PropertyValue value) |
| Modifier and Type | Method and Description |
|---|---|
float |
asFloat() |
static float |
calcFloatProportionalValue(CalculatedStyle style,
CSSName cssName,
String stringValue,
float relVal,
short primitiveType,
float baseValue,
CssContext ctx) |
float |
getFloatProportionalTo(CSSName cssName,
float baseValue,
CssContext ctx)
Computes a relative unit (e.g.
|
boolean |
hasAbsoluteUnit() |
boolean |
isDependentOnFontSize() |
asColor, asIdentValue, asString, asStringArray, getCssSacUnitType, getStringValue, isAbsoluteUnit, isDeclaredInherit, isIdentpublic LengthValue(CalculatedStyle style, CSSName name, PropertyValue value)
public float asFloat()
asFloat in interface FSDerivedValueasFloat in class DerivedValuepublic float getFloatProportionalTo(CSSName cssName, float baseValue, CssContext ctx)
getFloatProportionalTo in interface FSDerivedValuegetFloatProportionalTo in class DerivedValuecssName - Name of the propertybaseValue - ctx - public boolean hasAbsoluteUnit()
hasAbsoluteUnit in interface FSDerivedValuehasAbsoluteUnit in class DerivedValuepublic boolean isDependentOnFontSize()
isDependentOnFontSize in interface FSDerivedValueisDependentOnFontSize in class DerivedValuepublic static float calcFloatProportionalValue(CalculatedStyle style, CSSName cssName, String stringValue, float relVal, short primitiveType, float baseValue, CssContext ctx)
Copyright © 2017. All rights reserved.