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 Details

    • values

      protected float[] values
      The three color values.
    • whitepoint

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

    • 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 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

      public abstract String getFunctionName()
    • getCssValueType

      public short 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