Package org.mapsforge.map.layer.debug
Class TileGridLayer
- java.lang.Object
-
- org.mapsforge.map.layer.Layer
-
- org.mapsforge.map.layer.debug.TileGridLayer
-
public class TileGridLayer extends Layer
-
-
Constructor Summary
Constructors Constructor Description TileGridLayer(org.mapsforge.core.graphics.GraphicFactory graphicFactory, DisplayModel displayModel)
TileGridLayer(DisplayModel displayModel, org.mapsforge.core.graphics.Paint paintBack, org.mapsforge.core.graphics.Paint paintFront)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Constructor Detail
-
TileGridLayer
public TileGridLayer(org.mapsforge.core.graphics.GraphicFactory graphicFactory, DisplayModel displayModel)
-
TileGridLayer
public TileGridLayer(DisplayModel displayModel, org.mapsforge.core.graphics.Paint paintBack, org.mapsforge.core.graphics.Paint paintFront)
-
-
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.
-
-