Documentation of 'org.jhotdraw.color.CIEXYChromaticityDiagramImageProducer' Java class
CIEXYChromaticityDiagramImageProducer
org.jhotdraw.color

Class CIEXYChromaticityDiagramImageProducer

  • All Implemented Interfaces:
    java.awt.image.ImageProducer


    public class CIEXYChromaticityDiagramImageProducer
    extends java.awt.image.MemoryImageSource
    Produces a CIE xy Chromaticity Diagram.

    The diagram shows a projection of the CIE XYZ cube on a xy plane. The projection is based on the following equations:

    x = X / (X + Y + Z), y = Y / (X + Y + Z), z = 1 - x - y.

    The equations can be rewritten as:

    X = (x*(Y+Z)/(1-x), Y = (y*(X+Z)/(1-y).

    • Constructor Detail

      • CIEXYChromaticityDiagramImageProducer

        public CIEXYChromaticityDiagramImageProducer(int w,
                                                     int h)
    • Method Detail

      • needsGeneration

        public boolean needsGeneration()
      • regenerateDiagram

        public void regenerateDiagram()
      • generateImage

        public void generateImage()
      • getColorLocation

        @Nullable
        public java.awt.Point getColorLocation(java.awt.Color c)
      • getColorLocation

        @Nullable
        public java.awt.Point getColorLocation(float[] components)
      • getColorAt

        @Nullable
        public float[] getColorAt(int x,
                                            int y)
      • getWidth

        public int getWidth()
      • getHeight

        public int getHeight()
      • toRGB

        public void toRGB(float[] ciexyz,
                          float[] rgb)

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.