com.supermap.services.util.cache
接口 ImageCache
- 
- 所有已知实现类:
 - DefaultImageCache
 
public interface ImageCache图片缓存对象接口。
 
- 
- 
方法概要
方法 限定符和类型 方法和说明 voidadd(CacheItem item, int width, int height)添加缓存项。booleancacheExists(CacheItem cacheItem, int width, int height)判断对应的缓存是否存在voidclear(Rectangle2D bounds)清除缓存voidclear(Rectangle2D bounds, int width, int height)清除缓存voidclearAll()清除所有缓存。CacheItem[]getCacheItems(Rectangle2D bounds, double scale)根据范围和比例尺获取对应的缓存项CacheItem[]getCacheItems(Rectangle2D bounds, int width, int height, double scale)根据范围获取对应的缓存项voidremove(CacheItem item)清除单个缓存 
 - 
 
- 
- 
方法详细资料
- 
cacheExists
boolean cacheExists(CacheItem cacheItem, int width, int height)
判断对应的缓存是否存在
- 参数:
 cacheItem-width-height-- 返回:
 
 
- 
add
void add(CacheItem item, int width, int height)
添加缓存项。
- 参数:
 item-mapName-width-height-
 
- 
getCacheItems
CacheItem[] getCacheItems(Rectangle2D bounds, int width, int height, double scale)
根据范围获取对应的缓存项
- 参数:
 bounds-- 返回:
 
 
- 
getCacheItems
CacheItem[] getCacheItems(Rectangle2D bounds, double scale)
根据范围和比例尺获取对应的缓存项
- 参数:
 bounds-- 返回:
 
 
- 
remove
void remove(CacheItem item)
清除单个缓存- 参数:
 item-
 
- 
clear
void clear(Rectangle2D bounds)
清除缓存
- 参数:
 bounds-
 
- 
clearAll
void clearAll()
清除所有缓存。
 
- 
clear
void clear(Rectangle2D bounds, int width, int height)
清除缓存
- 参数:
 bounds-width-height-
 
 - 
 
 -