|
Préférences
Moteurs de recherche
|
||||||||||||||||||||
| JavaTM 2 Platform Std. Ed. v1.5.0
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 |
|---|
void addTileObserver(TileObserver to)
to - the specified TileObservervoid removeTileObserver(TileObserver to)
to - the specified TileObserverWritableRaster getWritableTile(int tileX, int tileY)
tileX - the X index of the tile.tileY - the Y index of the tile.
void releaseWritableTile(int tileX,
int tileY)
tileX - the X index of the tile.tileY - the Y index of the tile.
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.Point[] getWritableTileIndices()
boolean hasTileWriters()
true if any tiles are checked out for
writing; false otherwise.void setData(Raster r)
r - the specified Raster