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

WritableRenderedImage

public interface WritableRenderedImage implements RenderedImage
The WriteableRenderedImage interface is interface for objects which contains Raster data of one or several tiles. This interface provides notification mechanism for obtaining tile's writing status.
since
Android 1.0

Fields Summary
Constructors Summary
Methods Summary
public voidaddTileObserver(java.awt.image.TileObserver to)
Adds the specified TileObserver to this WritableRenderedImage.

param
to the TileObserver object to be added.

public java.awt.image.WritableRastergetWritableTile(int tileX, int tileY)
Gets and checks out the writable tile for writing.

param
tileX the X index of the tile.
param
tileY the Y index of the tile.
return
the WritableRaster.

public java.awt.Point[]getWritableTileIndices()
Gets the array of points which represent indices of tiles which are check out for writing.

return
the array of points.

public booleanhasTileWriters()
Checks if there is a tile which is checked out for writing.

return
true, if any tile is checked out for writing, false if there is no such tile.

public booleanisTileWritable(int tileX, int tileY)
Checks if the specified tile is writable or not.

param
tileX the X index of tile.
param
tileY the Y index of tile.
return
true, if the specified tile is writable, false otherwise.

public voidreleaseWritableTile(int tileX, int tileY)
Release the specified writable tile. This method removes the writer from the tile.

param
tileX the X index of the tile.
param
tileY the Y index of the tile.

public voidremoveTileObserver(java.awt.image.TileObserver to)
Removes the registered TileObserver.

param
to the TileObserver which is registered for this WritableRenderedImage.

public voidsetData(java.awt.image.Raster r)
Sets this image to the contents of the specified Raster.

param
r the specified Raster.