phelps.awt.color

Class ColorSpaceLab

public class ColorSpaceLab extends ColorSpace

L*a*b* CIE-based color space.

Version: $Revision: 1.4 $ $Date: 2002/06/06 21:45:18 $

Constructor Summary
ColorSpaceLab(float whitex, float whitey, float whitez)
Pass white point (x,y,z).
Method Summary
float[]fromCIEXYZ(float[] colorvalue)
NOT IMPLEMENTED (not needed for PDF).
float[]fromRGB(float[] rgbvalue)
protected floatg(float x)
Goofy Lab-specific function.
floatgetMaxValue(int component)
floatgetMinValue(int component)
voidsetBlackPoint(float x, float y, float z)
voidsetRange(float amin, float amax, float bmin, float bmax)
float[]toCIEXYZ(float[] colorvalue)
java.awt.color.ColorSpaces
float[]toRGB(float[] colorvalue)

Constructor Detail

ColorSpaceLab

public ColorSpaceLab(float whitex, float whitey, float whitez)
Pass white point (x,y,z).

Method Detail

fromCIEXYZ

public float[] fromCIEXYZ(float[] colorvalue)
NOT IMPLEMENTED (not needed for PDF). So don't call Color.getComponents() or Color.getColorComponents() on colors in this ColorSpace.

fromRGB

public float[] fromRGB(float[] rgbvalue)

g

protected final float g(float x)
Goofy Lab-specific function.

getMaxValue

public float getMaxValue(int component)

getMinValue

public float getMinValue(int component)

setBlackPoint

public void setBlackPoint(float x, float y, float z)

setRange

public void setRange(float amin, float amax, float bmin, float bmax)

toCIEXYZ

public float[] toCIEXYZ(float[] colorvalue)
java.awt.color.ColorSpaces

toRGB

public float[] toRGB(float[] colorvalue)