public class PathText extends RenderInstruction
category, displayModel, graphicFactory, height, percent, width| Constructor and Description |
|---|
PathText(org.mapsforge.core.graphics.GraphicFactory graphicFactory,
DisplayModel displayModel,
java.lang.String elementName,
org.xmlpull.v1.XmlPullParser pullParser) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
renderNode(RenderCallback renderCallback,
RenderContext renderContext,
PointOfInterest poi) |
void |
renderWay(RenderCallback renderCallback,
RenderContext renderContext,
PolylineContainer way) |
void |
scaleStrokeWidth(float scaleFactor,
byte zoomLevel)
Scales the stroke width of this RenderInstruction by the given factor.
|
void |
scaleTextSize(float scaleFactor,
byte zoomLevel)
Scales the text size of this RenderInstruction by the given factor.
|
createBitmap, getCategory, scaleFromValuepublic PathText(org.mapsforge.core.graphics.GraphicFactory graphicFactory,
DisplayModel displayModel,
java.lang.String elementName,
org.xmlpull.v1.XmlPullParser pullParser)
throws org.xmlpull.v1.XmlPullParserException
org.xmlpull.v1.XmlPullParserExceptionpublic void destroy()
destroy in class RenderInstructionpublic void renderNode(RenderCallback renderCallback, RenderContext renderContext, PointOfInterest poi)
renderNode in class RenderInstructionrenderCallback - a reference to the receiver of all render callbacks.public void renderWay(RenderCallback renderCallback, RenderContext renderContext, PolylineContainer way)
renderWay in class RenderInstructionrenderCallback - a reference to the receiver of all render callbacks.public void scaleStrokeWidth(float scaleFactor,
byte zoomLevel)
RenderInstructionscaleStrokeWidth in class RenderInstructionscaleFactor - the factor by which the stroke width should be scaled.public void scaleTextSize(float scaleFactor,
byte zoomLevel)
RenderInstructionscaleTextSize in class RenderInstructionscaleFactor - the factor by which the text size should be scaled.