| java.lang.Object java.awt.color.ColorSpace
Constructor Summary | |
protected | ColorSpace(int type, int numcomponents) Constructs a ColorSpace object given a color space type
and the number of components. |
Method Summary | |
public static ColorSpace | getInstance(int colorspace) Returns a ColorSpace representing one of the specific
predefined color spaces.
Parameters: colorspace - a specific color space identified by one ofthe predefined class constants (e.g. | public String | getName(int idx) Returns the name of the component given the component index.
Parameters: idx - 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, ...). | public boolean | isCS_sRGB() Returns true if the ColorSpace is CS_sRGB. |
TYPE_RGB | final public static int TYPE_RGB(Code) | | Any of the family of RGB color spaces.
|
serialVersionUID | final static long serialVersionUID(Code) | | |
ColorSpace | protected ColorSpace(int type, int numcomponents)(Code) | | Constructs a ColorSpace object given a color space type
and the number of components.
Parameters: type - One of the ColorSpace type constants. Parameters: numcomponents - The number of components in the color space. |
getInstance | public static ColorSpace getInstance(int colorspace)(Code) | | Returns a ColorSpace representing one of the specific
predefined color spaces.
Parameters: colorspace - a specific color space identified by one ofthe predefined class constants (e.g. CS_sRGB, CS_LINEAR_RGB,CS_CIEXYZ, CS_GRAY, or CS_PYCC) The requested ColorSpace object. |
getName | public String getName(int idx)(Code) | | Returns the name of the component given the component index.
Parameters: idx - The component index. The name of the component at the specified index. |
getNumComponents | public int getNumComponents()(Code) | | Returns the number of components of this ColorSpace.
The number of components in this ColorSpace . |
getType | public int getType()(Code) | | Returns the color space type of this ColorSpace (for example
TYPE_RGB, TYPE_XYZ, ...). The type defines the
number of components of the color space and the interpretation,
e.g. TYPE_RGB identifies a color space with three components - red,
green, and blue. It does not define the particular color
characteristics of the space, e.g. the chromaticities of the
primaries.
The type constant that represents the type of thisColorSpace . |
isCS_sRGB | public boolean isCS_sRGB()(Code) | | Returns true if the ColorSpace is CS_sRGB.
true if this is a CS_sRGB colorspace, false if it is not. |
|
|