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) |
boolean |
ensureCapacity(int pCapacity) |
void |
garbageCollection()
Removes from the memory cache all the tiles that should no longer be there
|
MapTileAreaList |
getAdditionalMapTileList() |
Drawable |
getMapTile(long pMapTileIndex) |
MapTileArea |
getMapTileArea() |
MapTilePreCache |
getPreCache() |
List<MapTileAreaComputer> |
getProtectedTileComputers() |
List<MapTileContainer> |
getProtectedTileContainers() |
int |
getSize() |
MapTileCache.TileRemovedListener |
getTileRemovedListener() |
void |
maintenance()
Maintenance operations
|
void |
putTile(long pMapTileIndex,
Drawable aDrawable) |
protected void |
remove(long pMapTileIndex) |
void |
setAutoEnsureCapacity(boolean pAutoEnsureCapacity) |
void |
setStressedMemory(boolean pStressedMemory) |
void |
setTileRemovedListener(MapTileCache.TileRemovedListener tileRemovedListener) |
public MapTileCache()
public MapTileCache(int aMaximumCacheSize)
aMaximumCacheSize
- Maximum amount of MapTiles to be hold within.public List<MapTileAreaComputer> getProtectedTileComputers()
public List<MapTileContainer> getProtectedTileContainers()
public void setAutoEnsureCapacity(boolean pAutoEnsureCapacity)
public void setStressedMemory(boolean pStressedMemory)
public boolean ensureCapacity(int pCapacity)
public Drawable getMapTile(long pMapTileIndex)
public void putTile(long pMapTileIndex, Drawable aDrawable)
public void garbageCollection()
public MapTileArea getMapTileArea()
public MapTileAreaList getAdditionalMapTileList()
public boolean containsTile(long pMapTileIndex)
public void clear()
protected void remove(long pMapTileIndex)
public MapTileCache.TileRemovedListener getTileRemovedListener()
public void setTileRemovedListener(MapTileCache.TileRemovedListener tileRemovedListener)
public int getSize()
public void maintenance()
public MapTilePreCache getPreCache()