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
Methods inherited from class com.openhtmltopdf.css.style.DerivedValue
asFloat, asIdentValue, asString, asStringArray, getCssSacUnitType, getFloatProportionalTo, getStringValue, hasAbsoluteUnit, isAbsoluteUnit, isDeclaredInherit, isDependentOnFontSize, isIdent
-
Constructor Details
-
ColorValue
-
-
Method Details
-
asColor
Returns the value as a Color, if it is a color.- Specified by:
asColorin interfaceFSDerivedValue- Overrides:
asColorin classDerivedValue- Returns:
- The color value - either
FSRGBColororFSCMYKColor
-