public class Area extends RenderInstruction
category, displayModel, graphicFactory, height, percent, width| Constructor and Description |
|---|
Area(org.mapsforge.core.graphics.GraphicFactory graphicFactory,
DisplayModel displayModel,
java.lang.String elementName,
org.xmlpull.v1.XmlPullParser pullParser,
int level,
java.lang.String relativePathPrefix) |
| 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 Area(org.mapsforge.core.graphics.GraphicFactory graphicFactory,
DisplayModel displayModel,
java.lang.String elementName,
org.xmlpull.v1.XmlPullParser pullParser,
int level,
java.lang.String relativePathPrefix)
throws java.io.IOException,
org.xmlpull.v1.XmlPullParserException
java.io.IOExceptionorg.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.