Package org.mapsforge.map.layer.labels
Class LabelLayer
- java.lang.Object
-
- org.mapsforge.map.layer.Layer
-
- org.mapsforge.map.layer.labels.LabelLayer
-
- Direct Known Subclasses:
ThreadedLabelLayer
public class LabelLayer extends Layer
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<org.mapsforge.core.mapelements.MapElementContainer>elementsToDrawprotected LabelStorelabelStoreprotected intlastLabelStoreVersionprotected org.mapsforge.core.model.TilelowerRightprotected org.mapsforge.core.graphics.Matrixmatrixprotected org.mapsforge.core.model.TileupperLeft-
Fields inherited from class org.mapsforge.map.layer.Layer
displayModel
-
-
Constructor Summary
Constructors Constructor Description LabelLayer(org.mapsforge.core.graphics.GraphicFactory graphicFactory, LabelStore labelStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddraw(org.mapsforge.core.graphics.Canvas canvas, org.mapsforge.core.model.Point topLeftPoint)voiddraw(org.mapsforge.core.model.BoundingBox boundingBox, byte zoomLevel, org.mapsforge.core.graphics.Canvas canvas, org.mapsforge.core.model.Point topLeftPoint)Draws thisLayeron the given canvas.-
Methods inherited from class org.mapsforge.map.layer.Layer
getDisplayModel, getPosition, isVisible, onAdd, onDestroy, onLongPress, onRemove, onScroll, onTap, requestRedraw, setDisplayModel, setVisible, setVisible
-
-
-
-
Field Detail
-
labelStore
protected final LabelStore labelStore
-
matrix
protected final org.mapsforge.core.graphics.Matrix matrix
-
elementsToDraw
protected java.util.List<org.mapsforge.core.mapelements.MapElementContainer> elementsToDraw
-
upperLeft
protected org.mapsforge.core.model.Tile upperLeft
-
lowerRight
protected org.mapsforge.core.model.Tile lowerRight
-
lastLabelStoreVersion
protected int lastLabelStoreVersion
-
-
Constructor Detail
-
LabelLayer
public LabelLayer(org.mapsforge.core.graphics.GraphicFactory graphicFactory, LabelStore labelStore)
-
-
Method Detail
-
draw
public void draw(org.mapsforge.core.model.BoundingBox boundingBox, byte zoomLevel, org.mapsforge.core.graphics.Canvas canvas, org.mapsforge.core.model.Point topLeftPoint)Description copied from class:LayerDraws thisLayeron the given canvas.- Specified by:
drawin classLayer- Parameters:
boundingBox- the geographical area which should be drawn.zoomLevel- the zoom level at which thisLayershould draw itself.canvas- the canvas on which thisLayershould draw itself.topLeftPoint- the top-left pixel position of the canvas relative to the top-left map position.
-
draw
protected void draw(org.mapsforge.core.graphics.Canvas canvas, org.mapsforge.core.model.Point topLeftPoint)
-
-