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, scaleFromValue
public 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.XmlPullParserException
public void destroy()
destroy
in class RenderInstruction
public void renderNode(RenderCallback renderCallback, RenderContext renderContext, PointOfInterest poi)
renderNode
in class RenderInstruction
renderCallback
- a reference to the receiver of all render callbacks.public void renderWay(RenderCallback renderCallback, RenderContext renderContext, PolylineContainer way)
renderWay
in class RenderInstruction
renderCallback
- a reference to the receiver of all render callbacks.public void scaleStrokeWidth(float scaleFactor, byte zoomLevel)
RenderInstruction
scaleStrokeWidth
in class RenderInstruction
scaleFactor
- the factor by which the stroke width should be scaled.public void scaleTextSize(float scaleFactor, byte zoomLevel)
RenderInstruction
scaleTextSize
in class RenderInstruction
scaleFactor
- the factor by which the text size should be scaled.