|
PJA Toolkit 2.6 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.image.ColorModel
java.awt.image.IndexColorModel
com.eteks.awt.image.Web216ColorModel
public class Web216ColorModel
An example of IndexColorModel which uses a fixed palette consisting of the standard "safe 216 Web colors" + a tranparent color at index 216. Each Red, Green, Blue component of the 216 colors palette take a value among the 6 values of the following set : (0x00, 0x33, 0x66, 0x99, OxCC, OxFF). 6 power 3 makes 216 total possible combinations.
Field Summary |
---|
Fields inherited from class java.awt.image.ColorModel |
---|
pixel_bits, transferType |
Fields inherited from interface java.awt.Transparency |
---|
BITMASK, OPAQUE, TRANSLUCENT |
Constructor Summary | |
---|---|
Web216ColorModel()
Creates a color model with fixed Web216 palette. |
Method Summary |
---|
Methods inherited from class java.awt.image.IndexColorModel |
---|
convertToIntDiscrete, createCompatibleSampleModel, createCompatibleWritableRaster, finalize, getAlpha, getAlphas, getBlue, getBlues, getComponents, getComponents, getComponentSize, getDataElement, getDataElements, getDataElements, getGreen, getGreens, getMapSize, getRed, getReds, getRGB, getRGBs, getTransparency, getTransparentPixel, getValidPixels, isCompatibleRaster, isCompatibleSampleModel, isValid, isValid, toString |
Methods inherited from class java.awt.image.ColorModel |
---|
coerceData, equals, getAlpha, getAlphaRaster, getBlue, getColorSpace, getComponentSize, getDataElement, getDataElements, getGreen, getNormalizedComponents, getNormalizedComponents, getNumColorComponents, getNumComponents, getPixelSize, getRed, getRGB, getRGBdefault, getTransferType, getUnnormalizedComponents, hasAlpha, hashCode, isAlphaPremultiplied |
Methods inherited from class java.lang.Object |
---|
clone, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Web216ColorModel()
|
PJA Toolkit 2.6 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |