public class LabelLayer extends Layer
Modifier and Type | Field and 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 |
displayModel
Constructor and Description |
---|
LabelLayer(org.mapsforge.core.graphics.GraphicFactory graphicFactory,
LabelStore labelStore) |
Modifier and Type | Method and Description |
---|---|
void |
draw(org.mapsforge.core.model.BoundingBox boundingBox,
byte zoomLevel,
org.mapsforge.core.graphics.Canvas canvas,
org.mapsforge.core.model.Point topLeftPoint)
Draws this
Layer on the given canvas. |
protected void |
draw(org.mapsforge.core.graphics.Canvas canvas,
org.mapsforge.core.model.Point topLeftPoint) |
getDisplayModel, getPosition, isVisible, onAdd, onDestroy, onLongPress, onRemove, onTap, requestRedraw, setDisplayModel, setVisible, setVisible
protected final LabelStore labelStore
protected final org.mapsforge.core.graphics.Matrix matrix
protected java.util.List<org.mapsforge.core.mapelements.MapElementContainer> elementsToDraw
protected org.mapsforge.core.model.Tile upperLeft
protected org.mapsforge.core.model.Tile lowerRight
protected int lastLabelStoreVersion
public LabelLayer(org.mapsforge.core.graphics.GraphicFactory graphicFactory, LabelStore labelStore)
public void draw(org.mapsforge.core.model.BoundingBox boundingBox, byte zoomLevel, org.mapsforge.core.graphics.Canvas canvas, org.mapsforge.core.model.Point topLeftPoint)
Layer
Layer
on the given canvas.draw
in class Layer
boundingBox
- the geographical area which should be drawn.zoomLevel
- the zoom level at which this Layer
should draw itself.canvas
- the canvas on which this Layer
should draw itself.topLeftPoint
- the top-left pixel position of the canvas relative to the top-left map position.protected void draw(org.mapsforge.core.graphics.Canvas canvas, org.mapsforge.core.model.Point topLeftPoint)