|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TileCache
Implement this interface for creating your custom tile cache for
JMapViewer
.
Method Summary | |
---|---|
void |
addTile(Tile tile)
Adds a tile to 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()
|
Method Detail |
---|
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 retrieved
null
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |