Top Fields Constructors Methods
com.openhtmltopdf.css.style.derived

public Class ColorValue

extends DerivedValue
Class Inheritance
Imports
com.openhtmltopdf.css.constants.CSSName, com.openhtmltopdf.css.parser.FSCMYKColor, .FSColor, .FSRGBColor, .PropertyValue, com.openhtmltopdf.css.style.DerivedValue

Field Summary

Modifier and TypeField and Description
private final FSColor

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public FSColor

Returns:

The color value - either FSRGBColor or FSCMYKColor
asColor
()

Overrides com.openhtmltopdf.css.style.DerivedValue.asColor.

Implements com.openhtmltopdf.css.style.FSDerivedValue.asColor.

Returns the value as a Color, if it is a color.

Inherited from com.openhtmltopdf.css.style.DerivedValue:
asFloatasIdentValueasStringasStringArraygetCssSacUnitTypegetFloatProportionalTogetStringValuehasAbsoluteUnitisAbsoluteUnitisDeclaredInheritisDependentOnFontSizeisIdent

Field Detail

_colorback to summary
private final FSColor _color

Constructor Detail

ColorValueback to summary
public ColorValue(CSSName name, PropertyValue value)

Method Detail

asColorback to summary
public FSColor asColor()

Overrides com.openhtmltopdf.css.style.DerivedValue.asColor.

Implements com.openhtmltopdf.css.style.FSDerivedValue.asColor.

Returns the value as a Color, if it is a color.

Returns:FSColor

The color value - either FSRGBColor or FSCMYKColor

Annotations
@Override