public interface ImageCache
Image cache object interface.
Modifier and Type | Method and Description |
---|---|
void |
add(CacheItem item, int width, int height)
Add cache item.
|
boolean |
cacheExists(CacheItem cacheItem, int width, int height)
Determine whether the corresponding cache exists
|
void |
clear(Rectangle2D bounds)
Clear the cache
|
void |
clear(Rectangle2D bounds, int width, int height)
Clear the cache
|
void |
clearAll()
Clear all cache.
|
CacheItem[] |
getCacheItems(Rectangle2D bounds, double scale)
Get the corresponding cache item according to the range and scale
|
CacheItem[] |
getCacheItems(Rectangle2D bounds, int width, int height, double scale)
Get the corresponding cache item according to the range
|
void |
remove(CacheItem item)
Clear single cache
|
boolean cacheExists(CacheItem cacheItem, int width, int height)
Determine whether the corresponding cache exists
cacheItem
-width
-height
-void add(CacheItem item, int width, int height)
Add cache item.
item
-mapName
-width
-height
-CacheItem[] getCacheItems(Rectangle2D bounds, int width, int height, double scale)
Get the corresponding cache item according to the range
bounds
-CacheItem[] getCacheItems(Rectangle2D bounds, double scale)
Get the corresponding cache item according to the range and scale
bounds
-void remove(CacheItem item)
item
-void clear(Rectangle2D bounds)
Clear the cache
bounds
-void clearAll()
Clear all cache.
void clear(Rectangle2D bounds, int width, int height)
Clear the cache
bounds
-width
-height
-