|
Préférences
Moteurs de recherche
|
||||||||||||||||||||
JavaTM 2 Platform Std. Ed. v1.4.2
java.awt.image
|
Method Summary | |
void |
addTileObserver(TileObserver to)
Adds an observer. |
WritableRaster |
getWritableTile(int tileX,
int tileY)
Checks out a tile for writing. |
Point[] |
getWritableTileIndices()
Returns an array of Point objects indicating which tiles are checked out for writing. |
boolean |
hasTileWriters()
Returns whether any tile is checked out for writing. |
boolean |
isTileWritable(int tileX,
int tileY)
Returns whether a tile is currently checked out for writing. |
void |
releaseWritableTile(int tileX,
int tileY)
Relinquishes the right to write to a tile. |
void |
removeTileObserver(TileObserver to)
Removes an observer. |
void |
setData(Raster r)
Sets a rect of the image to the contents of the Raster r, which is assumed to be in the same coordinate space as the WritableRenderedImage. |
Methods inherited from interface java.awt.image.RenderedImage |
copyData, getColorModel, getData, getData, getHeight, getMinTileX, getMinTileY, getMinX, getMinY, getNumXTiles, getNumYTiles, getProperty, getPropertyNames, getSampleModel, getSources, getTile, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getWidth |
Method Detail |
public void addTileObserver(TileObserver to)
to
- the specified TileObserver
public void removeTileObserver(TileObserver to)
to
- the specified TileObserver
public WritableRaster getWritableTile(int tileX, int tileY)
tileX
- the X index of the tile.tileY
- the Y index of the tile.
public void releaseWritableTile(int tileX, int tileY)
tileX
- the X index of the tile.tileY
- the Y index of the tile.public boolean isTileWritable(int tileX, int tileY)
tileX
- the X index of the tile.tileY
- the Y index of the tile.
true
if specified tile is checked out
for writing; false
otherwise.public Point[] getWritableTileIndices()
public boolean hasTileWriters()
true
if any tiles are checked out for
writing; false
otherwise.public void setData(Raster r)
r
- the specified Raster