aicas logoJamaica 3.2 release 62

java.awt.image
Class PackedColorModel

java.lang.Object
  extended by java.awt.image.ColorModel
      extended by java.awt.image.PackedColorModel
All Implemented Interfaces:
Transparency
Direct Known Subclasses:
DirectColorModel

public abstract class PackedColorModel
extends ColorModel


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
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)
           
 
Method Summary
 SampleModel createCompatibleSampleModel(int w, int h)
           
 boolean equals(Object obj)
          equals compares this object to another object.
 WritableRaster getAlphaRaster(WritableRaster raster)
          Subclasses must override this method if it is possible for the color model to have an alpha channel.
 int getMask(int index)
           
 int[] getMasks()
           
 boolean isCompatibleSampleModel(SampleModel sm)
           
 
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
 
Methods inherited from class java.lang.Object
clone, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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 logoJamaica 3.2 release 62

aicas GmbH, Karlsruhe - Germany    www.aicas.com
Copyright 2001-2008 aicas GmbH. All Rights Reserved.