public class Caption extends RenderInstruction
Modifier and Type | Field and Description |
---|---|
static float |
DEFAULT_GAP |
category, displayModel, graphicFactory, height, percent, width
Constructor and Description |
---|
Caption(org.mapsforge.core.graphics.GraphicFactory graphicFactory,
DisplayModel displayModel,
java.lang.String elementName,
org.xmlpull.v1.XmlPullParser pullParser,
java.util.Map<java.lang.String,Symbol> symbols) |
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 static final float DEFAULT_GAP
public Caption(org.mapsforge.core.graphics.GraphicFactory graphicFactory, DisplayModel displayModel, java.lang.String elementName, org.xmlpull.v1.XmlPullParser pullParser, java.util.Map<java.lang.String,Symbol> symbols) 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.