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[]valuesThe three color values.protected float[]whitepointThe white point, initialized to D50.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractCIEColor(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.StringgetCssText()A string representation of the current value.shortgetCssValueType()ImplementsValue.getCssValueType().abstract java.lang.StringgetFunctionName()float[]getWhitePoint()Returns the white point in CIE XYZ coordinates.java.lang.StringtoString()-
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:
getCssValueTypein interfaceValue- Overrides:
getCssValueTypein classAbstractValue
-
getCssText
public java.lang.String getCssText()
A string representation of the current value.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-