Package com.openhtmltopdf.css.style
Class DerivedValue
- java.lang.Object
-
- com.openhtmltopdf.css.style.DerivedValue
-
- All Implemented Interfaces:
FSDerivedValue
- Direct Known Subclasses:
ColorValue,CountersValue,FunctionValue,LengthValue,ListValue,NumberValue,StringValue
public abstract class DerivedValue extends Object implements FSDerivedValue
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDerivedValue()protectedDerivedValue(CSSName name, short cssSACUnitType, String cssText, String cssStringValue)
-
Method Summary
Modifier and Type Method Description FSColorasColor()floatasFloat()IdentValueasIdentValue()StringasString()String[]asStringArray()shortgetCssSacUnitType()floatgetFloatProportionalTo(CSSName cssName, float baseValue, CssContext ctx)StringgetStringValue()The getCssText() or getStringValue(), depending.booleanhasAbsoluteUnit()booleanisAbsoluteUnit()booleanisDeclaredInherit()If value is declared INHERIT should always be the IdentValue.INHERIT, not a DerivedValuebooleanisDependentOnFontSize()booleanisIdent()
-
-
-
Method Detail
-
getStringValue
public String getStringValue()
The getCssText() or getStringValue(), depending.
-
isDeclaredInherit
public boolean isDeclaredInherit()
If value is declared INHERIT should always be the IdentValue.INHERIT, not a DerivedValue- Specified by:
isDeclaredInheritin interfaceFSDerivedValue
-
getCssSacUnitType
public short getCssSacUnitType()
-
isAbsoluteUnit
public boolean isAbsoluteUnit()
-
asFloat
public float asFloat()
- Specified by:
asFloatin interfaceFSDerivedValue
-
asColor
public FSColor asColor()
- Specified by:
asColorin interfaceFSDerivedValue
-
getFloatProportionalTo
public float getFloatProportionalTo(CSSName cssName, float baseValue, CssContext ctx)
- Specified by:
getFloatProportionalToin interfaceFSDerivedValue
-
asString
public String asString()
- Specified by:
asStringin interfaceFSDerivedValue
-
asStringArray
public String[] asStringArray()
- Specified by:
asStringArrayin interfaceFSDerivedValue
-
asIdentValue
public IdentValue asIdentValue()
- Specified by:
asIdentValuein interfaceFSDerivedValue
-
hasAbsoluteUnit
public boolean hasAbsoluteUnit()
- Specified by:
hasAbsoluteUnitin interfaceFSDerivedValue
-
isIdent
public boolean isIdent()
- Specified by:
isIdentin interfaceFSDerivedValue
-
isDependentOnFontSize
public boolean isDependentOnFontSize()
- Specified by:
isDependentOnFontSizein interfaceFSDerivedValue
-
-