Class LabelLayer

    • Field Detail

      • labelStore

        protected final LabelStore labelStore
      • matrix

        protected final org.mapsforge.core.graphics.Matrix matrix
      • elementsToDraw

        protected java.util.List<org.mapsforge.core.mapelements.MapElementContainer> elementsToDraw
      • upperLeft

        protected org.mapsforge.core.model.Tile upperLeft
      • lowerRight

        protected org.mapsforge.core.model.Tile lowerRight
      • lastLabelStoreVersion

        protected int lastLabelStoreVersion
    • Constructor Detail

      • LabelLayer

        public LabelLayer​(org.mapsforge.core.graphics.GraphicFactory graphicFactory,
                          LabelStore labelStore)
    • 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 this Layer on the given canvas.
        Specified by:
        draw in class Layer
        Parameters:
        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.
      • draw

        protected void draw​(org.mapsforge.core.graphics.Canvas canvas,
                            org.mapsforge.core.model.Point topLeftPoint)