Class RenderContext


  • public class RenderContext
    extends java.lang.Object
    A RenderContext contains all the information and data to render a map area, it is passed between calls in order to avoid local data stored in the DatabaseRenderer.
    • Field Detail

      • labels

        public final java.util.List<org.mapsforge.core.mapelements.MapElementContainer> labels
    • Constructor Detail

      • RenderContext

        public RenderContext​(RendererJob rendererJob,
                             CanvasRasterer canvasRasterer)
                      throws java.lang.InterruptedException,
                             java.util.concurrent.ExecutionException
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
    • Method Detail

      • destroy

        public void destroy()
      • setDrawingLayers

        public void setDrawingLayers​(byte layer)
      • addToCurrentDrawingLayer

        public void addToCurrentDrawingLayer​(int level,
                                             ShapePaintContainer element)
      • otherTile

        public RendererJob otherTile​(org.mapsforge.core.model.Tile tile)
        Just a way of generating a hash key for a tile if only the RendererJob is known.
        Parameters:
        tile - the tile that changes
        Returns:
        a RendererJob based on the current one, only tile changes