public class TileGridLayer extends Layer
Constructor and Description |
---|
TileGridLayer(DisplayModel displayModel,
org.mapsforge.core.graphics.Paint paintBack,
org.mapsforge.core.graphics.Paint paintFront) |
TileGridLayer(org.mapsforge.core.graphics.GraphicFactory graphicFactory,
DisplayModel displayModel) |
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. |
getDisplayModel, getPosition, isVisible, onAdd, onDestroy, onLongPress, onRemove, onTap, requestRedraw, setDisplayModel, setVisible, setVisible
public TileGridLayer(org.mapsforge.core.graphics.GraphicFactory graphicFactory, DisplayModel displayModel)
public TileGridLayer(DisplayModel displayModel, org.mapsforge.core.graphics.Paint paintBack, org.mapsforge.core.graphics.Paint paintFront)
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.