Class ColorValue
- java.lang.Object
-
- org.xhtmlrenderer.css.style.DerivedValue
-
- org.xhtmlrenderer.css.style.derived.ColorValue
-
- All Implemented Interfaces:
FSDerivedValue
public class ColorValue extends DerivedValue
-
-
Constructor Summary
Constructors Constructor Description ColorValue(CSSName name, PropertyValue value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FSColor
asColor()
Returns the value as a Color, if it is a color.-
Methods inherited from class org.xhtmlrenderer.css.style.DerivedValue
asFloat, asIdentValue, asString, asStringArray, getCssSacUnitType, getFloatProportionalTo, getStringValue, hasAbsoluteUnit, isAbsoluteUnit, isDeclaredInherit, isDependentOnFontSize, isIdent
-
-
-
-
Constructor Detail
-
ColorValue
public ColorValue(CSSName name, PropertyValue value)
-
-
Method Detail
-
asColor
public FSColor asColor()
Returns the value as a Color, if it is a color.- Specified by:
asColor
in interfaceFSDerivedValue
- Overrides:
asColor
in classDerivedValue
- Returns:
- The rGBColorValue value
-
-