com.supermap.services.util.cache
Interface ImageCache
-
- All Known Implementing Classes:
- DefaultImageCache
public interface ImageCacheImage cache object interface.
-
-
Method Summary
Methods Modifier and Type Method and Description voidadd(CacheItem item, int width, int height)Add cache item.booleancacheExists(CacheItem cacheItem, int width, int height)Determine whether the corresponding cache existsvoidclear(Rectangle2D bounds)Clear the cachevoidclear(Rectangle2D bounds, int width, int height)Clear the cachevoidclearAll()Clear all cache.CacheItem[]getCacheItems(Rectangle2D bounds, double scale)Get the corresponding cache item according to the range and scaleCacheItem[]getCacheItems(Rectangle2D bounds, int width, int height, double scale)Get the corresponding cache item according to the rangevoidremove(CacheItem item)Clear single cache
-
-
-
Method Detail
-
cacheExists
boolean cacheExists(CacheItem cacheItem, int width, int height)
Determine whether the corresponding cache exists
- Parameters:
cacheItem-width-height-- Returns:
-
add
void add(CacheItem item, int width, int height)
Add cache item.
- Parameters:
item-mapName-width-height-
-
getCacheItems
CacheItem[] getCacheItems(Rectangle2D bounds, int width, int height, double scale)
Get the corresponding cache item according to the range
- Parameters:
bounds-- Returns:
-
getCacheItems
CacheItem[] getCacheItems(Rectangle2D bounds, double scale)
Get the corresponding cache item according to the range and scale
- Parameters:
bounds-- Returns:
-
remove
void remove(CacheItem item)
Clear single cache- Parameters:
item-
-
clear
void clear(Rectangle2D bounds)
Clear the cache
- Parameters:
bounds-
-
clearAll
void clearAll()
Clear all cache.
-
clear
void clear(Rectangle2D bounds, int width, int height)
Clear the cache
- Parameters:
bounds-width-height-
-
-