public interface TileObserver
希望在出现以下情况时被通知的对象的接口:某个 writer 通过调用 getWritableTile 使 WritableRenderedImage 的 tile 变得可修改;通过最后调用 releaseWritableTile 使这些 tile 变得不可修改。
WritableRenderedImage
| 方法摘要 | |
|---|---|
void |
tileUpdate(WritableRenderedImage source, int tileX, int tileY, boolean willBeWritable) 即将被更新的 tile(此 tile 或者即将被获取以写入,或者正在从写入释放)。 |
| 方法详细信息 |
|---|
void tileUpdate(WritableRenderedImage source, int tileX, int tileY, boolean willBeWritable)
source - 拥有 tile 的图像。
tileX - 正在被更新的 tile 的 X 索引。
tileY - 正在被更新的 tile 的 Y 索引。
willBeWritable - 如果为 true,则 tile 将被获取以写入,否则它正在被释放。