API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.color. ColorSpace View Source
Author(s)
Since
Version
10 Feb 1997
Serial
Hierarchy
 Object
      ColorSpace
Implements
 Serializable
Subclasses
Description
publicabstract abstract class ColorSpace
  This abstract class is used to serve as a color space tag to identify the specific color space of a Color object or, via a ColorModel object, of an Image, a BufferedImage, or a GraphicsDevice.
See also:    ICC_ColorSpace
Constructors
protected ColorSpace (int type, int numcomponents)
  Constructs a ColorSpace object given a color space type and the number of components.
Methods
Hide/Show inherited methods
publicabstract float fromCIEXYZ (float[] colorvalue)
  Transforms a color value assumed to be in the CS_CIEXYZ conversion color space into this ColorSpace.
publicabstract float fromRGB (float[] rgbvalue)
  Transforms a color value assumed to be in the default CS_sRGB color space into this ColorSpace.
publicstatic ColorSpace getInstance (int colorspace)
  Returns a ColorSpace representing one of the specific predefined color spaces.
public float getMaxValue (int component)
  Returns the maximum normalized color component value for the specified component.
public float getMinValue (int component)
  Returns the minimum normalized color component value for the specified component.
public String getName (int idx)
  Returns the name of the component given the component index.
public int getNumComponents ()
  Returns the number of components of this ColorSpace.
public int getType ()
  Returns the color space type of this ColorSpace (for example TYPE_RGB, TYPE_XYZ, ...).
pack-privatestatic boolean isCS_CIEXYZ (ColorSpace cspace)
public boolean isCS_sRGB ()
  Returns true if the ColorSpace is CS_sRGB.
publicabstract float toCIEXYZ (float[] colorvalue)
  Transforms a color value assumed to be in this ColorSpace into the CS_CIEXYZ conversion color space.
publicabstract float toRGB (float[] colorvalue)
  Transforms a color value assumed to be in this ColorSpace into a value in the default CS_sRGB color space.
Fields
Hide/Show inherited fields
publicfinalstatic int CS_CIEXYZ = "1001"
The CIEXYZ conversion color space defined above.
publicfinalstatic int CS_GRAY = "1003"
The built-in linear gray scale color space.
publicfinalstatic int CS_LINEAR_RGB = "1004"
  A built-in linear RGB color space.
publicfinalstatic int CS_PYCC = "1002"
The Photo YCC conversion color space.
publicfinalstatic int CS_sRGB = "1000"
pack-privatefinalstatic long serialVersionUID = "-409452704308689724"
publicfinalstatic int TYPE_2CLR = "12"
Generic 2 component color spaces.
publicfinalstatic int TYPE_3CLR = "13"
Generic 3 component color spaces.
publicfinalstatic int TYPE_4CLR = "14"
Generic 4 component color spaces.
publicfinalstatic int TYPE_5CLR = "15"
Generic 5 component color spaces.
publicfinalstatic int TYPE_6CLR = "16"
Generic 6 component color spaces.
publicfinalstatic int TYPE_7CLR = "17"
Generic 7 component color spaces.
publicfinalstatic int TYPE_8CLR = "18"
Generic 8 component color spaces.
publicfinalstatic int TYPE_9CLR = "19"
Generic 9 component color spaces.
publicfinalstatic int TYPE_ACLR = "20"
Generic 10 component color spaces.
publicfinalstatic int TYPE_BCLR = "21"
Generic 11 component color spaces.
publicfinalstatic int TYPE_CCLR = "22"
Generic 12 component color spaces.
publicfinalstatic int TYPE_CMY = "11"
Any of the family of CMY color spaces.
publicfinalstatic int TYPE_CMYK = "9"
Any of the family of CMYK color spaces.
publicfinalstatic int TYPE_DCLR = "23"
Generic 13 component color spaces.
publicfinalstatic int TYPE_ECLR = "24"
Generic 14 component color spaces.
publicfinalstatic int TYPE_FCLR = "25"
Generic 15 component color spaces.
publicfinalstatic int TYPE_GRAY = "6"
Any of the family of GRAY color spaces.
publicfinalstatic int TYPE_HLS = "8"
Any of the family of HLS color spaces.
publicfinalstatic int TYPE_HSV = "7"
Any of the family of HSV color spaces.
publicfinalstatic int TYPE_Lab = "1"
Any of the family of Lab color spaces.
publicfinalstatic int TYPE_Luv = "2"
Any of the family of Luv color spaces.
publicfinalstatic int TYPE_RGB = "5"
Any of the family of RGB color spaces.
publicfinalstatic int TYPE_XYZ = "0"
Any of the family of XYZ color spaces.
publicfinalstatic int TYPE_YCbCr = "3"
Any of the family of YCbCr color spaces.
publicfinalstatic int TYPE_Yxy = "4"
Any of the family of Yxy color spaces.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar