Class RenderInstruction

    • Field Detail

      • category

        protected java.lang.String category
      • graphicFactory

        public final org.mapsforge.core.graphics.GraphicFactory graphicFactory
      • height

        protected float height
      • percent

        protected int percent
      • width

        protected float width
    • Constructor Detail

      • RenderInstruction

        protected RenderInstruction​(org.mapsforge.core.graphics.GraphicFactory graphicFactory,
                                    DisplayModel displayModel)
    • Method Detail

      • computeBoundary

        protected org.mapsforge.core.model.Rectangle computeBoundary​(int width,
                                                                     int height,
                                                                     org.mapsforge.core.graphics.Position position)
      • createBitmap

        protected org.mapsforge.core.graphics.Bitmap createBitmap​(java.lang.String relativePathPrefix,
                                                                  java.lang.String src,
                                                                  XmlThemeResourceProvider resourceProvider)
                                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • destroy

        public abstract void destroy()
      • getCategory

        public java.lang.String getCategory()
      • renderNode

        public abstract void renderNode​(RenderCallback renderCallback,
                                        RenderContext renderContext,
                                        PointOfInterest poi)
        Parameters:
        renderCallback - a reference to the receiver of all render callbacks.
        renderContext -
        poi -
      • renderWay

        public abstract void renderWay​(RenderCallback renderCallback,
                                       RenderContext renderContext,
                                       PolylineContainer way)
        Parameters:
        renderCallback - a reference to the receiver of all render callbacks.
        renderContext -
        way -
      • scaleFromValue

        protected org.mapsforge.map.rendertheme.renderinstruction.RenderInstruction.Scale scaleFromValue​(java.lang.String value)
      • scaleStrokeWidth

        public abstract void scaleStrokeWidth​(float scaleFactor,
                                              byte zoomLevel)
        Scales the stroke width of this RenderInstruction by the given factor.
        Parameters:
        scaleFactor - the factor by which the stroke width should be scaled.
      • scaleTextSize

        public abstract void scaleTextSize​(float scaleFactor,
                                           byte zoomLevel)
        Scales the text size of this RenderInstruction by the given factor.
        Parameters:
        scaleFactor - the factor by which the text size should be scaled.