Class AbstractCIEColor
- java.lang.Object
-
- org.apache.batik.css.engine.value.AbstractValue
-
- org.apache.batik.css.engine.value.svg12.AbstractCIEColor
-
- All Implemented Interfaces:
Value
- Direct Known Subclasses:
CIELabColor
,CIELCHColor
public abstract class AbstractCIEColor extends AbstractValue
This is a base class for CIE Lab/LCH color values.- Version:
- $Id: AbstractCIEColor.java 1617286 2014-08-11 14:03:51Z lbernardo $
-
-
Field Summary
Fields Modifier and Type Field Description protected float[]
values
The three color values.protected float[]
whitepoint
The white point, initialized to D50.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractCIEColor(float[] components, float[] whitepoint)
Creates a new CIE-based color.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description float[]
getColorValues()
Returns the color values.java.lang.String
getCssText()
A string representation of the current value.short
getCssValueType()
ImplementsValue.getCssValueType()
.abstract java.lang.String
getFunctionName()
float[]
getWhitePoint()
Returns the white point in CIE XYZ coordinates.java.lang.String
toString()
-
Methods inherited from class org.apache.batik.css.engine.value.AbstractValue
createDOMException, getBlue, getBottom, getFloatValue, getGreen, getIdentifier, getLeft, getLength, getListStyle, getPrimitiveType, getRed, getRight, getSeparator, getStringValue, getTop, item
-
-
-
-
Method Detail
-
getColorValues
public float[] getColorValues()
Returns the color values.- Returns:
- the color values
-
getWhitePoint
public float[] getWhitePoint()
Returns the white point in CIE XYZ coordinates.- Returns:
- the white point in CIE XYZ coordinates
-
getFunctionName
public abstract java.lang.String getFunctionName()
-
getCssValueType
public short getCssValueType()
ImplementsValue.getCssValueType()
.- Specified by:
getCssValueType
in interfaceValue
- Overrides:
getCssValueType
in classAbstractValue
-
getCssText
public java.lang.String getCssText()
A string representation of the current value.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-