Class PathText
- java.lang.Object
-
- org.mapsforge.map.rendertheme.renderinstruction.RenderInstruction
-
- org.mapsforge.map.rendertheme.renderinstruction.PathText
-
public class PathText extends RenderInstruction
Represents a text along a polyline on the map.
-
-
Field Summary
-
Fields inherited from class org.mapsforge.map.rendertheme.renderinstruction.RenderInstruction
category, displayModel, graphicFactory, height, percent, width
-
-
Constructor Summary
Constructors Constructor Description PathText(org.mapsforge.core.graphics.GraphicFactory graphicFactory, DisplayModel displayModel, java.lang.String elementName, org.xmlpull.v1.XmlPullParser pullParser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()voidrenderNode(RenderCallback renderCallback, RenderContext renderContext, PointOfInterest poi)voidrenderWay(RenderCallback renderCallback, RenderContext renderContext, PolylineContainer way)voidscaleStrokeWidth(float scaleFactor, byte zoomLevel)Scales the stroke width of this RenderInstruction by the given factor.voidscaleTextSize(float scaleFactor, byte zoomLevel)Scales the text size of this RenderInstruction by the given factor.-
Methods inherited from class org.mapsforge.map.rendertheme.renderinstruction.RenderInstruction
computeBoundary, createBitmap, getCategory, scaleFromValue
-
-
-
-
Constructor Detail
-
PathText
public PathText(org.mapsforge.core.graphics.GraphicFactory graphicFactory, DisplayModel displayModel, java.lang.String elementName, org.xmlpull.v1.XmlPullParser pullParser) throws org.xmlpull.v1.XmlPullParserException- Throws:
org.xmlpull.v1.XmlPullParserException
-
-
Method Detail
-
destroy
public void destroy()
- Specified by:
destroyin classRenderInstruction
-
renderNode
public void renderNode(RenderCallback renderCallback, RenderContext renderContext, PointOfInterest poi)
- Specified by:
renderNodein classRenderInstruction- Parameters:
renderCallback- a reference to the receiver of all render callbacks.
-
renderWay
public void renderWay(RenderCallback renderCallback, RenderContext renderContext, PolylineContainer way)
- Specified by:
renderWayin classRenderInstruction- Parameters:
renderCallback- a reference to the receiver of all render callbacks.
-
scaleStrokeWidth
public void scaleStrokeWidth(float scaleFactor, byte zoomLevel)Description copied from class:RenderInstructionScales the stroke width of this RenderInstruction by the given factor.- Specified by:
scaleStrokeWidthin classRenderInstruction- Parameters:
scaleFactor- the factor by which the stroke width should be scaled.
-
scaleTextSize
public void scaleTextSize(float scaleFactor, byte zoomLevel)Description copied from class:RenderInstructionScales the text size of this RenderInstruction by the given factor.- Specified by:
scaleTextSizein classRenderInstruction- Parameters:
scaleFactor- the factor by which the text size should be scaled.
-
-