public class Symbol extends RenderInstruction
category, displayModel, graphicFactory, height, percent, width
Constructor and Description |
---|
Symbol(org.mapsforge.core.graphics.GraphicFactory graphicFactory,
DisplayModel displayModel,
java.lang.String elementName,
org.xmlpull.v1.XmlPullParser pullParser,
java.lang.String relativePathPrefix) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
org.mapsforge.core.graphics.Bitmap |
getBitmap() |
java.lang.String |
getId() |
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 Symbol(org.mapsforge.core.graphics.GraphicFactory graphicFactory, DisplayModel displayModel, java.lang.String elementName, org.xmlpull.v1.XmlPullParser pullParser, java.lang.String relativePathPrefix) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException
java.io.IOException
org.xmlpull.v1.XmlPullParserException
public void destroy()
destroy
in class RenderInstruction
public org.mapsforge.core.graphics.Bitmap getBitmap()
public java.lang.String getId()
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.