public class Grid extends Layer
displayModel| Constructor and Description |
|---|
Grid(DisplayModel displayModel,
java.util.Map<java.lang.Byte,java.lang.Double> spacingConfig,
org.mapsforge.core.graphics.Paint lineBack,
org.mapsforge.core.graphics.Paint lineFront,
org.mapsforge.core.graphics.Paint textBack,
org.mapsforge.core.graphics.Paint textFront)
Ctor.
|
Grid(org.mapsforge.core.graphics.GraphicFactory graphicFactory,
DisplayModel displayModel,
java.util.Map<java.lang.Byte,java.lang.Double> spacingConfig)
Ctor.
|
| 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, setVisiblepublic Grid(org.mapsforge.core.graphics.GraphicFactory graphicFactory,
DisplayModel displayModel,
java.util.Map<java.lang.Byte,java.lang.Double> spacingConfig)
graphicFactory - the graphic factory.displayModel - the display model of the map view.spacingConfig - a map containing the spacing for every zoom level.public Grid(DisplayModel displayModel, java.util.Map<java.lang.Byte,java.lang.Double> spacingConfig, org.mapsforge.core.graphics.Paint lineBack, org.mapsforge.core.graphics.Paint lineFront, org.mapsforge.core.graphics.Paint textBack, org.mapsforge.core.graphics.Paint textFront)
displayModel - the display model of the map view.spacingConfig - a map containing the spacing for every zoom level.lineBack - the back line paint.lineFront - the top line paint.textBack - the back text paint.textFront - the top text paint.public void draw(org.mapsforge.core.model.BoundingBox boundingBox,
byte zoomLevel,
org.mapsforge.core.graphics.Canvas canvas,
org.mapsforge.core.model.Point topLeftPoint)
LayerLayer on the given canvas.draw in class LayerboundingBox - 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.