com.supermap.services.components.tilecache
Class DefaultImageTileCache<T extends TileSourceInfo>
- java.lang.Object
-
- com.supermap.services.components.tilecache.TileCacheBase<T>
-
- com.supermap.services.components.tilecache.DefaultImageTileCache<T>
-
- All Implemented Interfaces:
- ImageTileCache<T>
public class DefaultImageTileCache<T extends TileSourceInfo> extends TileCacheBase<T> implements ImageTileCache<T>
-
-
Field Summary
-
Fields inherited from class com.supermap.services.components.tilecache.TileCacheBase
tilesource
-
-
Constructor Summary
Constructors Constructor and Description DefaultImageTileCache()
-
Method Summary
Methods Modifier and Type Method and Description voidcacheImage(MapParameter mapParam, ImageOutputOption outputOption, byte[] imageData)Caches a drawing request.Point2DgetCompatibleTileOrigin(MapParameter param, ImageOutputOption outputOption)Finds the origin of the slice that matches the current request.ImageTileInfogetImageCache(MapParameter mapParameter, ImageOutputOption outputOption)Gets the picture cache for the given drawing request.-
Methods inherited from class com.supermap.services.components.tilecache.TileCacheBase
clear, connectTileSource, dispose, getTilesetInfos, init, insureInited, isAvailable
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.supermap.services.components.tilecache.ImageTileCache
clear, dispose, getTilesetInfos, isAvailable
-
-
-
-
Method Detail
-
cacheImage
public void cacheImage(MapParameter mapParam, ImageOutputOption outputOption, byte[] imageData)
Description copied from interface:ImageTileCacheCaches a drawing request.
- Specified by:
cacheImagein interfaceImageTileCache<T extends TileSourceInfo>imageData- Binary data of tile.
-
getImageCache
public ImageTileInfo getImageCache(MapParameter mapParameter, ImageOutputOption outputOption) throws MapException
Description copied from interface:ImageTileCacheGets the picture cache for the given drawing request.
- Specified by:
getImageCachein interfaceImageTileCache<T extends TileSourceInfo>- Returns:
- Tile infomation
- Throws:
MapException
-
getCompatibleTileOrigin
public Point2D getCompatibleTileOrigin(MapParameter param, ImageOutputOption outputOption)
Description copied from interface:ImageTileCacheFinds the origin of the slice that matches the current request.
- Specified by:
getCompatibleTileOriginin interfaceImageTileCache<T extends TileSourceInfo>- Returns:
-
-