Package org.pepsoft.util.swing
Interface TileListener
- All Known Implementing Classes:
TiledImageViewer
public interface TileListener
A listener for changes in the contents of tiles.
-
Method Summary
Modifier and TypeMethodDescriptionvoidtileChanged(TileProvider source, int x, int y) Invoked when the contents of a tile have changed and the tile should be retrieved again.voidtilesChanged(TileProvider source, Set<Point> tiles) Invoked when the contents of one or more tiles have changed and the tile(s) should be retrieved again.
-
Method Details
-
tileChanged
Invoked when the contents of a tile have changed and the tile should be retrieved again.- Parameters:
source- The tile provider from which the changed tile should be retrieved.x- The X coordinate (in tiles) of the changed tile.y- The Y coordinate (in tiles) of the changed tile.
-
tilesChanged
Invoked when the contents of one or more tiles have changed and the tile(s) should be retrieved again.- Parameters:
source- The tile provider from which the changed tile(s) should be retrieved.tiles- The set of coordinates of the changed tile(s).
-