Class ColorValue
- java.lang.Object
-
- com.openhtmltopdf.css.style.DerivedValue
-
- com.openhtmltopdf.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 com.openhtmltopdf.css.style.DerivedValue
asFloat, asIdentValue, asString, asStringArray, getCssSacUnitType, getFloatProportionalTo, getStringValue, hasAbsoluteUnit, isAbsoluteUnit, isDeclaredInherit, isDependentOnFontSize, isIdent
-
-
-
-
Field Detail
-
_color
private final FSColor _color
-
-
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 color value - either
FSRGBColor
orFSCMYKColor
-
-