public class ThreadedLabelLayer extends LabelLayer
elementsToDraw, labelStore, lastLabelStoreVersion, lowerRight, matrix, upperLeft
displayModel
Constructor and Description |
---|
ThreadedLabelLayer(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 |
getData(org.mapsforge.core.model.Tile upperLeft,
org.mapsforge.core.model.Tile lowerRight) |
void |
onDestroy() |
draw
getDisplayModel, getPosition, isVisible, onAdd, onLongPress, onRemove, onTap, requestRedraw, setDisplayModel, setVisible, setVisible
public ThreadedLabelLayer(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 LabelLayer
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 getData(org.mapsforge.core.model.Tile upperLeft, org.mapsforge.core.model.Tile lowerRight)