Class TileStoreLayer
- java.lang.Object
-
- org.mapsforge.map.layer.Layer
-
- org.mapsforge.map.layer.TileLayer<Job>
-
- org.mapsforge.map.layer.tilestore.TileStoreLayer
-
-
Field Summary
-
Fields inherited from class org.mapsforge.map.layer.TileLayer
hasJobQueue, isTransparent, jobQueue, tileCache
-
Fields inherited from class org.mapsforge.map.layer.Layer
displayModel
-
-
Constructor Summary
Constructors Constructor Description TileStoreLayer(TileCache tileCache, IMapViewPosition mapViewPosition, org.mapsforge.core.graphics.GraphicFactory graphicFactory, boolean isTransparent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JobcreateJob(org.mapsforge.core.model.Tile tile)protected booleanisTileStale(org.mapsforge.core.model.Tile tile, org.mapsforge.core.graphics.TileBitmap bitmap)Whether the tile is stale and should be refreshed.-
Methods inherited from class org.mapsforge.map.layer.TileLayer
draw, getAlpha, getTileCache, retrieveLabelsOnly, setAlpha, setDisplayModel, setParentTilesRendering
-
Methods inherited from class org.mapsforge.map.layer.Layer
getDisplayModel, getPosition, isVisible, onAdd, onDestroy, onLongPress, onRemove, onScroll, onTap, requestRedraw, setVisible, setVisible
-
-
-
-
Constructor Detail
-
TileStoreLayer
public TileStoreLayer(TileCache tileCache, IMapViewPosition mapViewPosition, org.mapsforge.core.graphics.GraphicFactory graphicFactory, boolean isTransparent)
-
-
Method Detail
-
createJob
protected Job createJob(org.mapsforge.core.model.Tile tile)
-
isTileStale
protected boolean isTileStale(org.mapsforge.core.model.Tile tile, org.mapsforge.core.graphics.TileBitmap bitmap)Whether the tile is stale and should be refreshed. This method is not needed for a TileStoreLayer and will always returnfalse. Both arguments can be null.- Specified by:
isTileStalein classTileLayer<Job>- Parameters:
tile- A tile.bitmap- The bitmap fortilecurrently held in the layer's cache.
-
-