Package org.mapsforge.map.rendertheme
Interface RenderCallback
-
- All Known Implementing Classes:
DatabaseRenderer
,DirectRenderer
,StandardRenderer
public interface RenderCallback
Callback methods for rendering areas, ways and points of interest (POIs).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
renderArea(RenderContext renderContext, org.mapsforge.core.graphics.Paint fill, org.mapsforge.core.graphics.Paint stroke, int level, PolylineContainer way)
Renders an area with the given parameters.void
renderAreaCaption(RenderContext renderContext, org.mapsforge.core.graphics.Display display, int priority, java.lang.String caption, float horizontalOffset, float verticalOffset, org.mapsforge.core.graphics.Paint fill, org.mapsforge.core.graphics.Paint stroke, org.mapsforge.core.graphics.Position position, int maxTextWidth, PolylineContainer way)
Renders an area caption with the given text.void
renderAreaSymbol(RenderContext renderContext, org.mapsforge.core.graphics.Display display, int priority, org.mapsforge.core.graphics.Bitmap symbol, PolylineContainer way)
Renders an area symbol with the given bitmap.void
renderPointOfInterestCaption(RenderContext renderContext, org.mapsforge.core.graphics.Display display, int priority, java.lang.String caption, float horizontalOffset, float verticalOffset, org.mapsforge.core.graphics.Paint fill, org.mapsforge.core.graphics.Paint stroke, org.mapsforge.core.graphics.Position position, int maxTextWidth, PointOfInterest poi)
Renders a point of interest caption with the given text.void
renderPointOfInterestCircle(RenderContext renderContext, float radius, org.mapsforge.core.graphics.Paint fill, org.mapsforge.core.graphics.Paint stroke, int level, PointOfInterest poi)
Renders a point of interest circle with the given parameters.void
renderPointOfInterestSymbol(RenderContext renderContext, org.mapsforge.core.graphics.Display display, int priority, org.mapsforge.core.model.Rectangle boundary, org.mapsforge.core.graphics.Bitmap symbol, PointOfInterest poi)
Renders a point of interest symbol with the given bitmap.void
renderWay(RenderContext renderContext, org.mapsforge.core.graphics.Paint stroke, float dy, int level, PolylineContainer way)
Renders a way with the given parameters.void
renderWaySymbol(RenderContext renderContext, org.mapsforge.core.graphics.Display display, int priority, org.mapsforge.core.graphics.Bitmap symbol, float dy, org.mapsforge.core.model.Rectangle boundary, boolean repeat, float repeatGap, float repeatStart, boolean rotate, PolylineContainer way)
Renders a way with the given symbol along the way path.void
renderWayText(RenderContext renderContext, org.mapsforge.core.graphics.Display display, int priority, java.lang.String text, float dy, org.mapsforge.core.graphics.Paint fill, org.mapsforge.core.graphics.Paint stroke, boolean repeat, float repeatGap, float repeatStart, boolean rotate, PolylineContainer way)
Renders a way with the given text along the way path.
-
-
-
Method Detail
-
renderArea
void renderArea(RenderContext renderContext, org.mapsforge.core.graphics.Paint fill, org.mapsforge.core.graphics.Paint stroke, int level, PolylineContainer way)
Renders an area with the given parameters.- Parameters:
renderContext
-fill
- the paint to be used for rendering the area.stroke
- an optional paint for the area casing (may be null).level
-
-
renderAreaCaption
void renderAreaCaption(RenderContext renderContext, org.mapsforge.core.graphics.Display display, int priority, java.lang.String caption, float horizontalOffset, float verticalOffset, org.mapsforge.core.graphics.Paint fill, org.mapsforge.core.graphics.Paint stroke, org.mapsforge.core.graphics.Position position, int maxTextWidth, PolylineContainer way)
Renders an area caption with the given text.- Parameters:
renderContext
-display
- display modepriority
- priority levelcaption
- the text.horizontalOffset
- the horizontal offset of the text.verticalOffset
- the vertical offset of the text.fill
- the paint for the text.stroke
- the casing of the text (may be null).position
- optional position (may be null)maxTextWidth
- maximum text width .way
- the way for the caption.
-
renderAreaSymbol
void renderAreaSymbol(RenderContext renderContext, org.mapsforge.core.graphics.Display display, int priority, org.mapsforge.core.graphics.Bitmap symbol, PolylineContainer way)
Renders an area symbol with the given bitmap.- Parameters:
renderContext
-symbol
-
-
renderPointOfInterestCaption
void renderPointOfInterestCaption(RenderContext renderContext, org.mapsforge.core.graphics.Display display, int priority, java.lang.String caption, float horizontalOffset, float verticalOffset, org.mapsforge.core.graphics.Paint fill, org.mapsforge.core.graphics.Paint stroke, org.mapsforge.core.graphics.Position position, int maxTextWidth, PointOfInterest poi)
Renders a point of interest caption with the given text.- Parameters:
renderContext
-caption
- the text to be rendered.horizontalOffset
- the horizontal offset of the caption.verticalOffset
- the vertical offset of the caption.fill
- the paint to be used for rendering the text.stroke
- an optional paint for the text casing (may be null).position
-
-
renderPointOfInterestCircle
void renderPointOfInterestCircle(RenderContext renderContext, float radius, org.mapsforge.core.graphics.Paint fill, org.mapsforge.core.graphics.Paint stroke, int level, PointOfInterest poi)
Renders a point of interest circle with the given parameters.- Parameters:
renderContext
-radius
- the radius of the circle.fill
- the paint to be used for rendering the circle.stroke
- an optional paint for the circle casing (may be null).level
-
-
renderPointOfInterestSymbol
void renderPointOfInterestSymbol(RenderContext renderContext, org.mapsforge.core.graphics.Display display, int priority, org.mapsforge.core.model.Rectangle boundary, org.mapsforge.core.graphics.Bitmap symbol, PointOfInterest poi)
Renders a point of interest symbol with the given bitmap.- Parameters:
renderContext
-symbol
-
-
renderWay
void renderWay(RenderContext renderContext, org.mapsforge.core.graphics.Paint stroke, float dy, int level, PolylineContainer way)
Renders a way with the given parameters.- Parameters:
renderContext
-stroke
- the paint to be used for rendering the way.dy
- the offset of the way.level
-
-
renderWaySymbol
void renderWaySymbol(RenderContext renderContext, org.mapsforge.core.graphics.Display display, int priority, org.mapsforge.core.graphics.Bitmap symbol, float dy, org.mapsforge.core.model.Rectangle boundary, boolean repeat, float repeatGap, float repeatStart, boolean rotate, PolylineContainer way)
Renders a way with the given symbol along the way path.- Parameters:
renderContext
-symbol
- the symbol to be rendered.dy
- the offset of the way.boundary
- the relative positioning of the symbolrepeat
- true if the symbol should be repeated, false otherwise.repeatGap
- distance between repetitions.repeatStart
-
-
renderWayText
void renderWayText(RenderContext renderContext, org.mapsforge.core.graphics.Display display, int priority, java.lang.String text, float dy, org.mapsforge.core.graphics.Paint fill, org.mapsforge.core.graphics.Paint stroke, boolean repeat, float repeatGap, float repeatStart, boolean rotate, PolylineContainer way)
Renders a way with the given text along the way path.- Parameters:
renderContext
-text
- the text to be rendered.dy
- the offset of the way text.fill
- the paint to be used for rendering the text.stroke
-
-
-