java.awt.color

Class ColorSpace

public abstract class ColorSpace extends Object implements Serializable

NEEDS DOCUMENTATION

Since: 1.2

Field Summary
static intCS_CIEXYZ
static intCS_GRAY
static intCS_LINEAR_RGB
static intCS_PYCC
static intCS_sRGB
static intTYPE_2CLR
static intTYPE_3CLR
static intTYPE_4CLR
static intTYPE_5CLR
static intTYPE_6CLR
static intTYPE_7CLR
static intTYPE_8CLR
static intTYPE_9CLR
static intTYPE_ACLR
static intTYPE_BCLR
static intTYPE_CCLR
static intTYPE_CMY
static intTYPE_CMYK
static intTYPE_DCLR
static intTYPE_ECLR
static intTYPE_FCLR
static intTYPE_GRAY
static intTYPE_HLS
static intTYPE_HSV
static intTYPE_Lab
static intTYPE_Luv
static intTYPE_RGB
static intTYPE_XYZ
static intTYPE_YCbCr
static intTYPE_Yxy
Constructor Summary
protected ColorSpace(int type, int numcomponents)
Method Summary
abstract float[]fromCIEXYZ(float[] colorvalue)
abstract float[]fromRGB(float[] rgbvalue)
static ColorSpacegetInstance(int colorspace)
floatgetMaxValue(int idx)
floatgetMinValue(int idx)
StringgetName(int idx)
intgetNumComponents()
intgetType()
booleanisCS_sRGB()
abstract float[]toCIEXYZ(float[] colorvalue)
abstract float[]toRGB(float[] colorvalue)
Transforms a color value assumed to be in this ColorSpace into a value in the default CS_sRGB color space.

Field Detail

CS_CIEXYZ

public static final int CS_CIEXYZ

CS_GRAY

public static final int CS_GRAY

CS_LINEAR_RGB

public static final int CS_LINEAR_RGB

CS_PYCC

public static final int CS_PYCC

CS_sRGB

public static final int CS_sRGB

TYPE_2CLR

public static final int TYPE_2CLR

TYPE_3CLR

public static final int TYPE_3CLR

TYPE_4CLR

public static final int TYPE_4CLR

TYPE_5CLR

public static final int TYPE_5CLR

TYPE_6CLR

public static final int TYPE_6CLR

TYPE_7CLR

public static final int TYPE_7CLR

TYPE_8CLR

public static final int TYPE_8CLR

TYPE_9CLR

public static final int TYPE_9CLR

TYPE_ACLR

public static final int TYPE_ACLR

TYPE_BCLR

public static final int TYPE_BCLR

TYPE_CCLR

public static final int TYPE_CCLR

TYPE_CMY

public static final int TYPE_CMY

TYPE_CMYK

public static final int TYPE_CMYK

TYPE_DCLR

public static final int TYPE_DCLR

TYPE_ECLR

public static final int TYPE_ECLR

TYPE_FCLR

public static final int TYPE_FCLR

TYPE_GRAY

public static final int TYPE_GRAY

TYPE_HLS

public static final int TYPE_HLS

TYPE_HSV

public static final int TYPE_HSV

TYPE_Lab

public static final int TYPE_Lab

TYPE_Luv

public static final int TYPE_Luv

TYPE_RGB

public static final int TYPE_RGB

TYPE_XYZ

public static final int TYPE_XYZ

TYPE_YCbCr

public static final int TYPE_YCbCr

TYPE_Yxy

public static final int TYPE_Yxy

Constructor Detail

ColorSpace

protected ColorSpace(int type, int numcomponents)

Method Detail

fromCIEXYZ

public abstract float[] fromCIEXYZ(float[] colorvalue)

fromRGB

public abstract float[] fromRGB(float[] rgbvalue)

getInstance

public static ColorSpace getInstance(int colorspace)

getMaxValue

public float getMaxValue(int idx)

Since: 1.4

getMinValue

public float getMinValue(int idx)

Since: 1.4

getName

public String getName(int idx)

getNumComponents

public int getNumComponents()

getType

public int getType()

isCS_sRGB

public boolean isCS_sRGB()

toCIEXYZ

public abstract float[] toCIEXYZ(float[] colorvalue)

toRGB

public abstract float[] toRGB(float[] colorvalue)
Transforms a color value assumed to be in this ColorSpace into a value in the default CS_sRGB color space.

Throws: ArrayIndexOutOfBoundsException If array length is not at least the number of components in this ColorSpace.