java.lang.Object
org.xhtmlrenderer.css.style.DerivedValue
org.xhtmlrenderer.css.style.derived.LengthValue
- All Implemented Interfaces:
FSDerivedValue
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatasFloat()static floatcalcFloatProportionalValue(CalculatedStyle style, CSSName cssName, String stringValue, float relVal, short primitiveType, float baseValue, CssContext ctx) floatgetFloatProportionalTo(CSSName cssName, float baseValue, CssContext ctx) Computes a relative unit (e.g. percentage) as an absolute value, using the input value.booleanbooleanMethods inherited from class org.xhtmlrenderer.css.style.DerivedValue
asColor, asIdentValue, asString, asStringArray, getCssSacUnitType, getStringValue, isAbsoluteUnit, isDeclaredInherit, isIdent
-
Constructor Details
-
LengthValue
-
-
Method Details
-
asFloat
public float asFloat()- Specified by:
asFloatin interfaceFSDerivedValue- Overrides:
asFloatin classDerivedValue
-
getFloatProportionalTo
Computes a relative unit (e.g. percentage) as an absolute value, using the input value. Used for such properties whose parent value cannot be known before layout/render- Specified by:
getFloatProportionalToin interfaceFSDerivedValue- Overrides:
getFloatProportionalToin classDerivedValue- Parameters:
cssName- Name of the property- Returns:
- the absolute value or computed absolute value
-
hasAbsoluteUnit
public boolean hasAbsoluteUnit()- Specified by:
hasAbsoluteUnitin interfaceFSDerivedValue- Overrides:
hasAbsoluteUnitin classDerivedValue
-
isDependentOnFontSize
public boolean isDependentOnFontSize()- Specified by:
isDependentOnFontSizein interfaceFSDerivedValue- Overrides:
isDependentOnFontSizein classDerivedValue
-
calcFloatProportionalValue
public static float calcFloatProportionalValue(CalculatedStyle style, CSSName cssName, String stringValue, float relVal, short primitiveType, float baseValue, CssContext ctx)
-