public interface TileCache
JMapViewer.| Modifier and Type | Method and Description |
|---|---|
void |
addTile(Tile tile)
Adds a tile to the cache.
|
void |
clear()
Clears the cache deleting all tiles from memory.
|
int |
getCacheSize()
Size of the cache.
|
Tile |
getTile(TileSource source,
int x,
int y,
int z)
Retrieves a tile from the cache if present, otherwise
null
will be returned. |
int |
getTileCount() |
Tile getTile(TileSource source, int x, int y, int z)
null
will be returned.source - the tile sourcex - tile number on the x axis of the tile to be retrievedy - tile number on the y axis of the tile to be retrievedz - zoom level of the tile to be retrievednull if the tile is not
present in the cachevoid addTile(Tile tile)
getTile(TileSource, int, int, int) is unspecified and depends on the
implementation.tile - the tile to be addedint getTileCount()
void clear()
int getCacheSize()