public interface ImageCache
图片缓存对象接口。
| 限定符和类型 | 方法和说明 | 
|---|---|
void | 
add(CacheItem item, int width, int height)
添加缓存项。 
 | 
boolean | 
cacheExists(CacheItem cacheItem, int width, int height)
判断对应的缓存是否存在 
 | 
void | 
clear(Rectangle2D bounds)
清除缓存 
 | 
void | 
clear(Rectangle2D bounds, int width, int height)
清除缓存 
 | 
void | 
clearAll()
清除所有缓存。 
 | 
CacheItem[] | 
getCacheItems(Rectangle2D bounds, double scale)
根据范围和比例尺获取对应的缓存项 
 | 
CacheItem[] | 
getCacheItems(Rectangle2D bounds, int width, int height, double scale)
根据范围获取对应的缓存项 
 | 
void | 
remove(CacheItem item)
清除单个缓存 
 | 
boolean cacheExists(CacheItem cacheItem, int width, int height)
判断对应的缓存是否存在
cacheItem -width -height -void add(CacheItem item, int width, int height)
添加缓存项。
item -mapName -width -height -CacheItem[] getCacheItems(Rectangle2D bounds, int width, int height, double scale)
根据范围获取对应的缓存项
bounds -CacheItem[] getCacheItems(Rectangle2D bounds, double scale)
根据范围和比例尺获取对应的缓存项
bounds -void remove(CacheItem item)
item -void clear(Rectangle2D bounds)
清除缓存
bounds -void clearAll()
清除所有缓存。
void clear(Rectangle2D bounds, int width, int height)
清除缓存
bounds -width -height -