com.supermap.services.components.tilecache
Class DefaultUTFGridTileCache<T extends TileSourceInfo>
- java.lang.Object
-
- com.supermap.services.components.tilecache.TileCacheBase<T>
-
- com.supermap.services.components.tilecache.DefaultUTFGridTileCache<T>
-
- All Implemented Interfaces:
- UTFGridTileCache<T>
public class DefaultUTFGridTileCache<T extends TileSourceInfo> extends TileCacheBase<T> implements UTFGridTileCache<T>
-
-
Field Summary
-
Fields inherited from class com.supermap.services.components.tilecache.TileCacheBase
tilesource
-
-
Constructor Summary
Constructors Constructor and Description DefaultUTFGridTileCache()
-
Method Summary
Methods Modifier and Type Method and Description voidcacheUTFGrid(UTFGridParameter gridParameter, UTFGridResult tileData)Caches a UTFGrid tile request.voidclear(java.lang.String mapName, Rectangle2D bounds)Clears the specified map, specifies the range of the tile cachevoiddispose()Releases cache-related resourcesUTFGridTileInfogetUTFGridCache(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.-
Methods inherited from class com.supermap.services.components.tilecache.TileCacheBase
connectTileSource, getTilesetInfos, init, insureInited, isAvailable
-
-
-
-
Method Detail
-
cacheUTFGrid
public void cacheUTFGrid(UTFGridParameter gridParameter, UTFGridResult tileData)
Description copied from interface:UTFGridTileCacheCaches a UTFGrid tile request.
- Specified by:
cacheUTFGridin interfaceUTFGridTileCache<T extends TileSourceInfo>
-
getUTFGridCache
public UTFGridTileInfo getUTFGridCache(UTFGridParameter gridParameter)
Description copied from interface:UTFGridTileCacheGets the UTFGrid cache for the given drawing request.
- Specified by:
getUTFGridCachein interfaceUTFGridTileCache<T extends TileSourceInfo>- Returns:
- Tile infomation
-
clear
public void clear(java.lang.String mapName, Rectangle2D bounds)Description copied from interface:UTFGridTileCacheClears the specified map, specifies the range of the tile cache
- Specified by:
clearin interfaceUTFGridTileCache<T extends TileSourceInfo>- Overrides:
clearin classTileCacheBase<T extends TileSourceInfo>- Parameters:
mapName- Map namebounds- Range, if empty, clears all
-
dispose
public void dispose()
Description copied from interface:UTFGridTileCacheReleases cache-related resources
- Specified by:
disposein interfaceUTFGridTileCache<T extends TileSourceInfo>- Overrides:
disposein classTileCacheBase<T extends TileSourceInfo>
-
getUTFGridTilesetInfos
public TilesetInfo[] getUTFGridTilesetInfos(java.lang.String mapName)
Description copied from interface:UTFGridTileCacheGets all the UTFGrid tile information for a given map.- Specified by:
getUTFGridTilesetInfosin interfaceUTFGridTileCache<T extends TileSourceInfo>- Returns:
-
-