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
public abstract class DerivedValue extends java.lang.Object implements FSDerivedValue
Created by IntelliJ IDEA. User: patrick Date: Oct 17, 2005 Time: 12:53:07 PM To change this template use File | Settings | File Templates.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FSColor
asColor()
float
asFloat()
IdentValue
asIdentValue()
java.lang.String
asString()
java.lang.String[]
asStringArray()
short
getCssSacUnitType()
float
getFloatProportionalTo(CSSName cssName, float baseValue, CssContext ctx)
java.lang.String
getStringValue()
The getCssText() or getStringValue(), depending.boolean
hasAbsoluteUnit()
boolean
isAbsoluteUnit()
boolean
isDeclaredInherit()
If value is declared INHERIT should always be the IdentValue.INHERIT, not a DerivedValueboolean
isDependentOnFontSize()
boolean
isIdent()
-
-
-
Method Detail
-
getStringValue
public java.lang.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:
isDeclaredInherit
in interfaceFSDerivedValue
-
getCssSacUnitType
public short getCssSacUnitType()
-
isAbsoluteUnit
public boolean isAbsoluteUnit()
-
asFloat
public float asFloat()
- Specified by:
asFloat
in interfaceFSDerivedValue
-
asColor
public FSColor asColor()
- Specified by:
asColor
in interfaceFSDerivedValue
-
getFloatProportionalTo
public float getFloatProportionalTo(CSSName cssName, float baseValue, CssContext ctx)
- Specified by:
getFloatProportionalTo
in interfaceFSDerivedValue
-
asString
public java.lang.String asString()
- Specified by:
asString
in interfaceFSDerivedValue
-
asStringArray
public java.lang.String[] asStringArray()
- Specified by:
asStringArray
in interfaceFSDerivedValue
-
asIdentValue
public IdentValue 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
-
-