com.imagero.swing.color
Class LabColor

java.lang.Object
  extended bycom.imagero.swing.color.LabColor

public class LabColor
extends java.lang.Object


Nested Class Summary
static class LabColor.WhitePoint
           
 
Field Summary
static LabColor.WhitePoint WP_A
           
static LabColor.WhitePoint WP_D50
           
static LabColor.WhitePoint WP_D65
           
static LabColor.WhitePoint WP_F2
           
 
Constructor Summary
LabColor()
           
LabColor(LabColor.WhitePoint whitePoint)
           
 
Method Summary
 int cie2rgb(float x0, float x1, float x2)
           
 float getA()
           
 float getB()
           
 int getBlue()
           
 int getGreen()
           
 float getL()
           
 int getRed()
           
 int getRGB()
           
 int getRGB(int alpha)
           
 float getX()
           
 float getY()
           
 float getZ()
           
 void setLAB(float L, float a, float b)
           
 void setRGB(int r, int g, int b)
           
 void setXYZ(float X, float Y, float Z)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WP_D65

public static final LabColor.WhitePoint WP_D65

WP_D50

public static final LabColor.WhitePoint WP_D50

WP_F2

public static final LabColor.WhitePoint WP_F2

WP_A

public static final LabColor.WhitePoint WP_A
Constructor Detail

LabColor

public LabColor()

LabColor

public LabColor(LabColor.WhitePoint whitePoint)
Method Detail

setXYZ

public void setXYZ(float X,
                   float Y,
                   float Z)

setRGB

public void setRGB(int r,
                   int g,
                   int b)

setLAB

public void setLAB(float L,
                   float a,
                   float b)

cie2rgb

public int cie2rgb(float x0,
                   float x1,
                   float x2)

getRed

public int getRed()

getGreen

public int getGreen()

getBlue

public int getBlue()

getRGB

public int getRGB()

getRGB

public int getRGB(int alpha)

getL

public float getL()

getA

public float getA()

getB

public float getB()

getX

public float getX()

getY

public float getY()

getZ

public float getZ()