FileDocCategorySizeDatePackage
AwtImageBackdoorAccessorImpl.javaAPI DocAndroid 1.5 API4732Wed May 06 22:41:54 BST 2009java.awt.image

AwtImageBackdoorAccessorImpl

public class AwtImageBackdoorAccessorImpl extends org.apache.harmony.awt.gl.AwtImageBackdoorAccessor
This class not part of public API. It useful for receiving package private data from other packages.
since
Android 1.0

Fields Summary
Constructors Summary
Methods Summary
public voidaddDataBufferListener(java.awt.image.DataBuffer db, org.apache.harmony.awt.gl.image.DataBufferListener listener)

        db.addDataBufferListener(listener);
    
public java.lang.ObjectgetData(java.awt.image.DataBuffer db)

        if (db instanceof DataBufferByte) {
            return ((DataBufferByte)db).getData();
        } else if (db instanceof DataBufferUShort) {
            return ((DataBufferUShort)db).getData();
        } else if (db instanceof DataBufferShort) {
            return ((DataBufferShort)db).getData();
        } else if (db instanceof DataBufferInt) {
            return ((DataBufferInt)db).getData();
        } else if (db instanceof DataBufferFloat) {
            return ((DataBufferFloat)db).getData();
        } else if (db instanceof DataBufferDouble) {
            return ((DataBufferDouble)db).getData();
        } else {
            // awt.235=Wrong Data Buffer type : {0}
            throw new IllegalArgumentException(Messages.getString("awt.235", //$NON-NLS-1$
                    db.getClass()));
        }
    
public byte[]getDataByte(java.awt.image.DataBuffer db)

        if (db instanceof DataBufferByte) {
            return ((DataBufferByte)db).getData();
        }
        return null;
    
public double[]getDataDouble(java.awt.image.DataBuffer db)

        if (db instanceof DataBufferDouble) {
            return ((DataBufferDouble)db).getData();
        }
        return null;
    
public float[]getDataFloat(java.awt.image.DataBuffer db)

        if (db instanceof DataBufferFloat) {
            return ((DataBufferFloat)db).getData();
        }
        return null;
    
public int[]getDataInt(java.awt.image.DataBuffer db)

        if (db instanceof DataBufferInt) {
            return ((DataBufferInt)db).getData();
        }
        return null;
    
public short[]getDataShort(java.awt.image.DataBuffer db)

        if (db instanceof DataBufferShort) {
            return ((DataBufferShort)db).getData();
        }
        return null;
    
public short[]getDataUShort(java.awt.image.DataBuffer db)

        if (db instanceof DataBufferUShort) {
            return ((DataBufferUShort)db).getData();
        }
        return null;
    
public org.apache.harmony.awt.gl.SurfacegetImageSurface(java.awt.Image image)

        if (image instanceof BufferedImage) {
            return ((BufferedImage)image).getImageSurface();
        } else if (image instanceof GLVolatileImage) {
            return ((GLVolatileImage)image).getImageSurface();
        }
        return null;
    
static voidinit()

        inst = new AwtImageBackdoorAccessorImpl();
    
public booleanisGrayPallete(java.awt.image.IndexColorModel icm)

        return icm.isGrayPallete();
    
public voidreleaseData(java.awt.image.DataBuffer db)

        db.releaseData();
    
public voidremoveDataBufferListener(java.awt.image.DataBuffer db)

        db.removeDataBufferListener();
    
public voidvalidate(java.awt.image.DataBuffer db)

        db.validate();