public class RenderTheme
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Must be called when this RenderTheme gets destroyed to clean up and free resources.
|
int |
getLevels() |
int |
getMapBackground() |
int |
getMapBackgroundOutside() |
boolean |
hasMapBackgroundOutside() |
void |
matchClosedWay(RenderCallback renderCallback,
RenderContext renderContext,
PolylineContainer way)
Matches a closed way with the given parameters against this RenderTheme.
|
void |
matchHillShadings(StandardRenderer renderer,
RenderContext renderContext) |
void |
matchLinearWay(RenderCallback renderCallback,
RenderContext renderContext,
PolylineContainer way)
Matches a linear way with the given parameters against this RenderTheme.
|
void |
matchNode(RenderCallback renderCallback,
RenderContext renderContext,
PointOfInterest poi)
Matches a node with the given parameters against this RenderTheme.
|
void |
scaleStrokeWidth(float scaleFactor,
byte zoomLevel)
Scales the stroke width of this RenderTheme by the given factor for a given zoom level
|
void |
scaleTextSize(float scaleFactor,
byte zoomLevel)
Scales the text size of this RenderTheme by the given factor for a given zoom level.
|
void |
traverseRules(Rule.RuleVisitor visitor) |
public void destroy()
public int getLevels()
public int getMapBackground()
public int getMapBackgroundOutside()
public boolean hasMapBackgroundOutside()
public void matchClosedWay(RenderCallback renderCallback, RenderContext renderContext, PolylineContainer way)
renderCallback - the callback implementation which will be executed on each match.renderContext - way - public void matchLinearWay(RenderCallback renderCallback, RenderContext renderContext, PolylineContainer way)
renderCallback - the callback implementation which will be executed on each match.renderContext - way - public void matchNode(RenderCallback renderCallback, RenderContext renderContext, PointOfInterest poi)
renderCallback - the callback implementation which will be executed on each match.renderContext - poi - the point of interest.public void scaleStrokeWidth(float scaleFactor,
byte zoomLevel)
scaleFactor - the factor by which the stroke width should be scaled.zoomLevel - the zoom level to which this is applied.public void scaleTextSize(float scaleFactor,
byte zoomLevel)
scaleFactor - the factor by which the text size should be scaled.zoomLevel - the zoom level to which this is applied.public void traverseRules(Rule.RuleVisitor visitor)
public void matchHillShadings(StandardRenderer renderer, RenderContext renderContext)