org.apache.batik.css.engine.value.svg12
Class AbstractCIEColor

java.lang.Object
  extended by org.apache.batik.css.engine.value.AbstractValue
      extended by 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.


Field Summary
protected  float[] values
          The three color values.
protected  float[] whitepoint
          The white point, initialized to D50.
 
Constructor Summary
protected AbstractCIEColor(float[] components, float[] whitepoint)
          Creates a new CIE-based color.
 
Method Summary
 float[] getColorValues()
          Returns the color values.
 String getCssText()
          A string representation of the current value.
 short getCssValueType()
          Implements Value.getCssValueType().
abstract  String getFunctionName()
           
 float[] getWhitePoint()
          Returns the white point in CIE XYZ coordinates.
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

values

protected float[] values
The three color values.


whitepoint

protected float[] whitepoint
The white point, initialized to D50.

Constructor Detail

AbstractCIEColor

protected AbstractCIEColor(float[] components,
                           float[] whitepoint)
Creates a new CIE-based color.

Parameters:
components - the color components
whitepoint - the white point in CIE XYZ coordinates
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 String getFunctionName()

getCssValueType

public short getCssValueType()
Implements Value.getCssValueType().

Specified by:
getCssValueType in interface Value
Overrides:
getCssValueType in class AbstractValue

getCssText

public String getCssText()
A string representation of the current value.


toString

public String toString()

Overrides:
toString in class Object


Copyright © 2017 Apache Software Foundation. All Rights Reserved.