|
JSR 216 (Maintenance Release) | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.color.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.
Note: In this Profile, the ColorSpace class only supports the sRGB color space.
sRGB is a proposed standard RGB color space. For more information, see http://www.w3.org/pub/WWW/Graphics/Color/sRGB.html .
Field Summary | |
static int |
CS_sRGB
The sRGB color space defined at http://www.w3.org/pub/WWW/Graphics/Color/sRGB.html . |
static int |
TYPE_RGB
Any of the family of RGB color spaces. |
Constructor Summary | |
protected |
ColorSpace(int type,
int numcomponents)
Constructs a ColorSpace object given a color space type and the number of components. |
Method Summary | |
static ColorSpace |
getInstance(int colorspace)
Returns a ColorSpace representing one of the specific predefined color spaces. |
String |
getName(int idx)
Returns the name of the component given the component index. |
int |
getNumComponents()
Returns the number of components of this ColorSpace. |
int |
getType()
Returns the color space type of this ColorSpace. |
boolean |
isCS_sRGB()
Returns true if the ColorSpace is CS_sRGB. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TYPE_RGB
public static final int CS_sRGB
Constructor Detail |
protected ColorSpace(int type, int numcomponents)
type
- One of the ColorSpace
type constants.numcomponents
- The number of components in the color space.Method Detail |
public static ColorSpace getInstance(int colorspace)
colorspace
- a specific color space identified by one of
the predefined class constants
ColorSpace
object.public boolean isCS_sRGB()
true
if this is a CS_sRGB
color
space, false
if it is not.public int getType()
ColorSpace
.public int getNumComponents()
ColorSpace
.public String getName(int idx)
idx
- The component index.
|
JSR 216 (Maintenance Release) | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |