public abstract class AbstractTileFactory extends java.lang.Object implements TileFactory
TileFactory
s, which provides caching of
tiles to improve performance in contexts where the same tile will be
requested multiple times.Constructor and Description |
---|
AbstractTileFactory() |
Modifier and Type | Method and Description |
---|---|
Tile |
getTile(int x,
int y)
Delegates to
TileFactory.createTile(int, int) , but implements a memory
sensitive tile cache and if the tile has been previously created and is
still in the cache, returns the cached tile. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyTheme, createTile, getMaxHeight, getMinHeight, getSeed, setMinMaxHeight, setSeed, transform
getExtent, isTilePresent
public Tile getTile(int x, int y)
TileFactory.createTile(int, int)
, but implements a memory
sensitive tile cache and if the tile has been previously created and is
still in the cache, returns the cached tile. If the tile is currently
being created on another thread, this method blocks until that is done.
This method is thread safe (if the underlying tile factory is).
getTile
in interface TileProvider
x
- The X coordinate of the tile to get.y
- The Y coordinate of the tile to get.