Interface TileListener

All Known Implementing Classes:
TiledImageViewer

public interface TileListener
A listener for changes in the contents of tiles.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    tileChanged(TileProvider source, int x, int y)
    Invoked when the contents of a tile have changed and the tile should be retrieved again.
    void
    Invoked when the contents of one or more tiles have changed and the tile(s) should be retrieved again.
  • Method Details

    • tileChanged

      void tileChanged(TileProvider source, int x, int y)
      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

      void tilesChanged(TileProvider source, Set<Point> tiles)
      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).