Class ColorValue
java.lang.Object
com.openhtmltopdf.css.style.DerivedValue
com.openhtmltopdf.css.style.derived.ColorValue
- All Implemented Interfaces:
FSDerivedValue
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.openhtmltopdf.css.style.DerivedValue
asFloat, asIdentValue, asString, asStringArray, getCssSacUnitType, getFloatProportionalTo, getStringValue, hasAbsoluteUnit, isAbsoluteUnit, isDeclaredInherit, isDependentOnFontSize, isIdent
-
Field Details
-
_color
-
-
Constructor Details
-
ColorValue
-
-
Method Details
-
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
-