java.awt.image
Class PackedColorModel
java.lang.Object
java.awt.image.ColorModel
java.awt.image.PackedColorModel
- All Implemented Interfaces:
- Transparency
- Direct Known Subclasses:
- DirectColorModel
public abstract class PackedColorModel
- extends ColorModel
|
Constructor Summary |
PackedColorModel(java.awt.color.ColorSpace cspace,
int pixelBits,
int[] colorMaskArray,
int alphaMask,
boolean isAlphaPremultiplied,
int transparency,
int transferType)
|
PackedColorModel(java.awt.color.ColorSpace cspace,
int pixelBits,
int rmask,
int gmask,
int bmask,
int amask,
boolean isAlphaPremultiplied,
int transparency,
int transferType)
|
| Methods inherited from class java.awt.image.ColorModel |
coerceData, coerceDataWorker, createCompatibleWritableRaster, finalize, getAlpha, getAlpha, getBlue, getBlue, getColorSpace, getComponents, getComponents, getComponentSize, getComponentSize, getDataElement, getDataElement, getDataElements, getDataElements, getDataElements, getGreen, getGreen, getNormalizedComponents, getNormalizedComponents, getNumColorComponents, getNumComponents, getPixelSize, getRed, getRed, getRGB, getRGB, getRGBdefault, getTransferType, getTransparency, getUnnormalizedComponents, hasAlpha, isAlphaPremultiplied, isCompatibleRaster, toString |
PackedColorModel
public PackedColorModel(java.awt.color.ColorSpace cspace,
int pixelBits,
int[] colorMaskArray,
int alphaMask,
boolean isAlphaPremultiplied,
int transparency,
int transferType)
PackedColorModel
public PackedColorModel(java.awt.color.ColorSpace cspace,
int pixelBits,
int rmask,
int gmask,
int bmask,
int amask,
boolean isAlphaPremultiplied,
int transparency,
int transferType)
getMask
public final int getMask(int index)
getMasks
public final int[] getMasks()
createCompatibleSampleModel
public SampleModel createCompatibleSampleModel(int w,
int h)
- Overrides:
createCompatibleSampleModel in class ColorModel
isCompatibleSampleModel
public boolean isCompatibleSampleModel(SampleModel sm)
- Overrides:
isCompatibleSampleModel in class ColorModel
getAlphaRaster
public WritableRaster getAlphaRaster(WritableRaster raster)
- Description copied from class:
ColorModel
- Subclasses must override this method if it is possible for the
color model to have an alpha channel.
- Overrides:
getAlphaRaster in class ColorModel
- Returns:
- null, as per JDK 1.3 doc. Subclasses will only return
null if no alpha raster exists.
equals
public boolean equals(Object obj)
- Description copied from class:
Object
- equals compares this object to another object.
Equals must be symmetric (a.equals(b) == b.equals(a)), reflexive
(a.equals(a)==true) and transitive (a.equals(b) && b.equals(c)
IMPLIES (a.equals(c))) and not change over time (a.equals(b) ==
a.equals(b)). a.equals(null) should always return false.
If a.equals(b) is true for two objects a and b, then
a.hashCode()==b.hashCode() must hold.
The default implementation of equals returns this==other.
- Overrides:
equals in class ColorModel
- Parameters:
obj - the other object.
- Returns:
- if this and other are considered equal.
aicas GmbH, Karlsruhe - Germany www.aicas.com
Copyright 2001-2008 aicas GmbH. All Rights Reserved.