public class ColorValue extends DerivedValue
Constructor and Description |
---|
ColorValue(CSSName name,
PropertyValue value) |
Modifier and Type | Method and Description |
---|---|
FSColor |
asColor()
Returns the value as a Color, if it is a color.
|
asFloat, asIdentValue, asString, asStringArray, getCssSacUnitType, getFloatProportionalTo, getStringValue, hasAbsoluteUnit, isAbsoluteUnit, isDeclaredInherit, isDependentOnFontSize, isIdent
public ColorValue(CSSName name, PropertyValue value)
public FSColor asColor()
asColor
in interface FSDerivedValue
asColor
in class DerivedValue