public class DefaultUTFGridTileCache<T extends TileSourceInfo> extends TileCacheBase<T> implements UTFGridTileCache<T>
tilesource
Constructor and Description |
---|
DefaultUTFGridTileCache() |
Modifier and Type | Method and Description |
---|---|
void |
cacheUTFGrid(UTFGridParameter gridParameter, UTFGridResult tileData)
Caches a UTFGrid tile request.
|
void |
clear(java.lang.String mapName, Rectangle2D bounds)
Clears the specified map, specifies the range of the tile cache
|
void |
dispose()
Releases cache-related resources
|
UTFGridTileInfo |
getUTFGridCache(UTFGridParameter gridParameter)
Gets the UTFGrid cache for the given drawing request.
|
TilesetInfo[] |
getUTFGridTilesetInfos(java.lang.String mapName)
Gets all the UTFGrid tile information for a given map.
|
connectTileSource, getTilesetInfos, init, insureInited, isAvailable
public void cacheUTFGrid(UTFGridParameter gridParameter, UTFGridResult tileData)
UTFGridTileCache
Caches a UTFGrid tile request.
cacheUTFGrid
in interface UTFGridTileCache<T extends TileSourceInfo>
public UTFGridTileInfo getUTFGridCache(UTFGridParameter gridParameter)
UTFGridTileCache
Gets the UTFGrid cache for the given drawing request.
getUTFGridCache
in interface UTFGridTileCache<T extends TileSourceInfo>
public void clear(java.lang.String mapName, Rectangle2D bounds)
UTFGridTileCache
Clears the specified map, specifies the range of the tile cache
clear
in interface UTFGridTileCache<T extends TileSourceInfo>
clear
in class TileCacheBase<T extends TileSourceInfo>
mapName
- Map namebounds
- Range, if empty, clears allpublic void dispose()
UTFGridTileCache
Releases cache-related resources
dispose
in interface UTFGridTileCache<T extends TileSourceInfo>
dispose
in class TileCacheBase<T extends TileSourceInfo>
public TilesetInfo[] getUTFGridTilesetInfos(java.lang.String mapName)
UTFGridTileCache
getUTFGridTilesetInfos
in interface UTFGridTileCache<T extends TileSourceInfo>