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
This is a base class for CIE Lab/LCH color values.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected float[]
The three color values.protected float[]
The white point, initialized to D50. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractCIEColor
(float[] components, float[] whitepoint) Creates a new CIE-based color. -
Method Summary
Modifier and TypeMethodDescriptionfloat[]
Returns the color values.A string representation of the current value.short
ImplementsValue.getCssValueType()
.abstract String
float[]
Returns the white point in CIE XYZ coordinates.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
-
Field Details
-
values
protected float[] valuesThe three color values. -
whitepoint
protected float[] whitepointThe white point, initialized to D50.
-
-
Constructor Details
-
AbstractCIEColor
protected AbstractCIEColor(float[] components, float[] whitepoint) Creates a new CIE-based color.- Parameters:
components
- the color componentswhitepoint
- the white point in CIE XYZ coordinates
-
-
Method Details
-
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
-
getCssValueType
public short getCssValueType()ImplementsValue.getCssValueType()
.- Specified by:
getCssValueType
in interfaceValue
- Overrides:
getCssValueType
in classAbstractValue
-
getCssText
A string representation of the current value. -
toString
-