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>
elementsToDraw
protected LabelStore
labelStore
protected int
lastLabelStoreVersion
protected org.mapsforge.core.model.Tile
lowerRight
protected org.mapsforge.core.graphics.Matrix
matrix
protected org.mapsforge.core.model.Tile
upperLeft
-
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 void
draw(org.mapsforge.core.graphics.Canvas canvas, org.mapsforge.core.model.Point topLeftPoint)
void
draw(org.mapsforge.core.model.BoundingBox boundingBox, byte zoomLevel, org.mapsforge.core.graphics.Canvas canvas, org.mapsforge.core.model.Point topLeftPoint)
Draws thisLayer
on 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:Layer
Draws thisLayer
on the given canvas.- Specified by:
draw
in classLayer
- Parameters:
boundingBox
- the geographical area which should be drawn.zoomLevel
- the zoom level at which thisLayer
should draw itself.canvas
- the canvas on which thisLayer
should 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)
-
-