Class 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 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 java.lang.String getFunctionName()
      • getCssText

        public java.lang.String getCssText()
        A string representation of the current value.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object