Methods Summary |
---|
public void | addDataBufferListener(java.awt.image.DataBuffer db, org.apache.harmony.awt.gl.image.DataBufferListener listener)
db.addDataBufferListener(listener);
|
public java.lang.Object | getData(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.Surface | getImageSurface(java.awt.Image image)
if (image instanceof BufferedImage) {
return ((BufferedImage)image).getImageSurface();
} else if (image instanceof GLVolatileImage) {
return ((GLVolatileImage)image).getImageSurface();
}
return null;
|
static void | init()
inst = new AwtImageBackdoorAccessorImpl();
|
public boolean | isGrayPallete(java.awt.image.IndexColorModel icm)
return icm.isGrayPallete();
|
public void | releaseData(java.awt.image.DataBuffer db)
db.releaseData();
|
public void | removeDataBufferListener(java.awt.image.DataBuffer db)
db.removeDataBufferListener();
|
public void | validate(java.awt.image.DataBuffer db)
db.validate();
|