public class RenderTheme extends java.lang.Object implements IRenderTheme
IRenderTheme.ThemeException| Constructor and Description |
|---|
RenderTheme(int mapBackground,
float baseTextSize,
Rule[] rules,
int levels) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Must be called when this RenderTheme gets destroyed to clean up and free
resources.
|
int |
getLevels() |
int |
getMapBackground() |
RenderStyle[] |
matchElement(GeometryBuffer.GeometryType geometryType,
TagSet tags,
int zoomLevel)
Matches a MapElement with the given parameters against this RenderTheme.
|
void |
scaleTextSize(float scaleFactor)
Scales the text size of this RenderTheme by the given factor.
|
void |
traverseRules(Rule.RuleVisitor visitor) |
void |
updateStyles() |
public RenderTheme(int mapBackground,
float baseTextSize,
Rule[] rules,
int levels)
public void dispose()
IRenderThemedispose in interface IRenderThemepublic int getLevels()
getLevels in interface IRenderThemepublic int getMapBackground()
getMapBackground in interface IRenderThemepublic RenderStyle[] matchElement(GeometryBuffer.GeometryType geometryType, TagSet tags, int zoomLevel)
IRenderThemematchElement in interface IRenderThemezoomLevel - the zoom level at which the way should be matched.public void scaleTextSize(float scaleFactor)
IRenderThemescaleTextSize in interface IRenderThemescaleFactor - the factor by which the text size should be scaled.public void updateStyles()
updateStyles in interface IRenderThemepublic void traverseRules(Rule.RuleVisitor visitor)