Package org.xhtmlrenderer.css.style
Class DerivedValue
java.lang.Object
org.xhtmlrenderer.css.style.DerivedValue
- All Implemented Interfaces:
FSDerivedValue
- Direct Known Subclasses:
ColorValue
,FunctionValue
,LengthValue
,ListValue
,NumberValue
,StringValue
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
DerivedValue
(CSSName name, short cssSACUnitType, String cssText, String cssStringValue) -
Method Summary
Modifier and TypeMethodDescriptionasColor()
float
asFloat()
asString()
String[]
private String
deriveStringValue
(String cssText, String cssStringValue) short
float
getFloatProportionalTo
(CSSName cssName, float baseValue, CssContext ctx) The getCssText() or getStringValue(), depending.boolean
boolean
boolean
If value is declared INHERIT should always be the IdentValue.INHERIT, not a DerivedValueboolean
boolean
isIdent()
-
Field Details
-
_asString
-
_cssSacUnitType
private short _cssSacUnitType
-
-
Constructor Details
-
DerivedValue
protected DerivedValue() -
DerivedValue
-
-
Method Details
-
deriveStringValue
-
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:
isDeclaredInherit
in interfaceFSDerivedValue
-
getCssSacUnitType
public short getCssSacUnitType() -
isAbsoluteUnit
public boolean isAbsoluteUnit() -
asFloat
public float asFloat()- Specified by:
asFloat
in interfaceFSDerivedValue
-
asColor
- Specified by:
asColor
in interfaceFSDerivedValue
-
getFloatProportionalTo
- Specified by:
getFloatProportionalTo
in interfaceFSDerivedValue
-
asString
- Specified by:
asString
in interfaceFSDerivedValue
-
asStringArray
- Specified by:
asStringArray
in interfaceFSDerivedValue
-
asIdentValue
- Specified by:
asIdentValue
in interfaceFSDerivedValue
-
hasAbsoluteUnit
public boolean hasAbsoluteUnit()- Specified by:
hasAbsoluteUnit
in interfaceFSDerivedValue
-
isIdent
public boolean isIdent()- Specified by:
isIdent
in interfaceFSDerivedValue
-
isDependentOnFontSize
public boolean isDependentOnFontSize()- Specified by:
isDependentOnFontSize
in interfaceFSDerivedValue
-