-
public class MapTileCacheIn memory cache of tiles
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceMapTileCache.TileRemovedListener
-
Constructor Summary
Constructors Constructor Description MapTileCache()MapTileCache(int aMaximumCacheSize)
-
Method Summary
Modifier and Type Method Description List<MapTileAreaComputer>getProtectedTileComputers()List<MapTileContainer>getProtectedTileContainers()voidsetAutoEnsureCapacity(boolean pAutoEnsureCapacity)voidsetStressedMemory(boolean pStressedMemory)booleanensureCapacity(int pCapacity)DrawablegetMapTile(long pMapTileIndex)voidputTile(long pMapTileIndex, Drawable aDrawable)voidgarbageCollection()Removes from the memory cache all the tiles that should no longer be there MapTileAreagetMapTileArea()MapTileAreaListgetAdditionalMapTileList()booleancontainsTile(long pMapTileIndex)voidclear()MapTileCache.TileRemovedListenergetTileRemovedListener()voidsetTileRemovedListener(MapTileCache.TileRemovedListener tileRemovedListener)intgetSize()voidmaintenance()Maintenance operations MapTilePreCachegetPreCache()-
-
Method Detail
-
getProtectedTileComputers
List<MapTileAreaComputer> getProtectedTileComputers()
-
getProtectedTileContainers
List<MapTileContainer> getProtectedTileContainers()
-
setAutoEnsureCapacity
void setAutoEnsureCapacity(boolean pAutoEnsureCapacity)
-
setStressedMemory
void setStressedMemory(boolean pStressedMemory)
-
ensureCapacity
boolean ensureCapacity(int pCapacity)
-
getMapTile
Drawable getMapTile(long pMapTileIndex)
-
garbageCollection
void garbageCollection()
Removes from the memory cache all the tiles that should no longer be there
-
getMapTileArea
MapTileArea getMapTileArea()
-
getAdditionalMapTileList
MapTileAreaList getAdditionalMapTileList()
-
containsTile
boolean containsTile(long pMapTileIndex)
-
clear
void clear()
-
getTileRemovedListener
MapTileCache.TileRemovedListener getTileRemovedListener()
-
setTileRemovedListener
void setTileRemovedListener(MapTileCache.TileRemovedListener tileRemovedListener)
-
getSize
int getSize()
-
maintenance
void maintenance()
Maintenance operations
-
getPreCache
MapTilePreCache getPreCache()
-
-
-
-