Class ColorSpaceCalRGB

  • All Implemented Interfaces:
    java.io.Serializable

    public class ColorSpaceCalRGB
    extends java.awt.color.ColorSpace
    This class represents a CalRGB color space. In the first place this implementation is needed to support CalRGB. To keep it simple, the CalRGB colorspace is treated similar to a DeviceRGB colorspace. There is no conversion including the gamma, whitepoint, blackpoint or matrix values yet. This should be suitable for displaying and simple printings.
    Version:
    $Revision: 1.0 $
    Author:
    Andreas Lehmkühler
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.awt.color.ColorSpace

        CS_CIEXYZ, CS_GRAY, CS_LINEAR_RGB, CS_PYCC, CS_sRGB, TYPE_2CLR, TYPE_3CLR, TYPE_4CLR, TYPE_5CLR, TYPE_6CLR, TYPE_7CLR, TYPE_8CLR, TYPE_9CLR, TYPE_ACLR, TYPE_BCLR, TYPE_CCLR, TYPE_CMY, TYPE_CMYK, TYPE_DCLR, TYPE_ECLR, TYPE_FCLR, TYPE_GRAY, TYPE_HLS, TYPE_HSV, TYPE_Lab, TYPE_Luv, TYPE_RGB, TYPE_XYZ, TYPE_YCbCr, TYPE_Yxy
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      float[] fromCIEXYZ​(float[] colorvalue)
      float[] fromRGB​(float[] rgbvalue)
      float[] toCIEXYZ​(float[] colorvalue)
      float[] toRGB​(float[] colorvalue)
      • Methods inherited from class java.awt.color.ColorSpace

        getInstance, getMaxValue, getMinValue, getName, getNumComponents, getType, isCS_sRGB
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ColorSpaceCalRGB

        public ColorSpaceCalRGB()
        Constructor.
      • ColorSpaceCalRGB

        public ColorSpaceCalRGB​(PDGamma gammaValue,
                                PDTristimulus whitept,
                                PDTristimulus blackpt,
                                PDMatrix linearMatrix)
        Constructor.
        Parameters:
        gammaValue - Gamma
        whitept - Whitepoint
        blackpt - Blackpoint
        linearMatrix - Matrix value
    • Method Detail

      • fromCIEXYZ

        public float[] fromCIEXYZ​(float[] colorvalue)
        Specified by:
        fromCIEXYZ in class java.awt.color.ColorSpace
      • fromRGB

        public float[] fromRGB​(float[] rgbvalue)
        Specified by:
        fromRGB in class java.awt.color.ColorSpace
      • toCIEXYZ

        public float[] toCIEXYZ​(float[] colorvalue)
        Specified by:
        toCIEXYZ in class java.awt.color.ColorSpace
      • toRGB

        public float[] toRGB​(float[] colorvalue)
        Specified by:
        toRGB in class java.awt.color.ColorSpace