public class MapTileCache extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
MapTileCache.TileRemovedListener |
Constructor and Description |
---|
MapTileCache() |
MapTileCache(int aMaximumCacheSize) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsTile(long pMapTileIndex) |
void |
ensureCapacity(int pCapacity) |
void |
garbageCollection()
Removes from the memory cache all the tiles that should no longer be there
|
Drawable |
getMapTile(long pMapTileIndex) |
MapTileList |
getMapTileList() |
int |
getSize() |
MapTileCache.TileRemovedListener |
getTileRemovedListener() |
void |
putTile(long pMapTileIndex,
Drawable aDrawable) |
void |
remove(long pMapTileIndex) |
void |
setTileRemovedListener(MapTileCache.TileRemovedListener tileRemovedListener) |
public MapTileCache()
public MapTileCache(int aMaximumCacheSize)
aMaximumCacheSize
- Maximum amount of MapTiles to be hold within.public void ensureCapacity(int pCapacity)
public Drawable getMapTile(long pMapTileIndex)
public void putTile(long pMapTileIndex, Drawable aDrawable)
public void garbageCollection()
public MapTileList getMapTileList()
public boolean containsTile(long pMapTileIndex)
public void clear()
public void remove(long pMapTileIndex)
public MapTileCache.TileRemovedListener getTileRemovedListener()
public void setTileRemovedListener(MapTileCache.TileRemovedListener tileRemovedListener)
public int getSize()