Package org.oscim.theme
Interface IRenderTheme
- All Known Implementing Classes:
AtlasRenderTheme,RenderTheme
public interface IRenderTheme
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Must be called when this RenderTheme gets destroyed to clean up and free resources.intintbooleanIs Mapsforge or VTM theme.matchElement(GeometryBuffer.GeometryType type, TagSet tags, int zoomLevel) Matches a MapElement with the given parameters against this RenderTheme.voidscaleTextSize(float scaleFactor) Scales the text size of this RenderTheme by the given factor.Transform internal key to tile source key.transformBackwardTag(Tag tag) Transform internal tag to tile source tag.Transform tile source key to internal key.transformForwardTag(Tag tag) Transform tile source tag to internal tag.void
-
Method Details
-
matchElement
Matches a MapElement with the given parameters against this RenderTheme.- Parameters:
zoomLevel- the zoom level at which the way should be matched.- Returns:
- matching render instructions
-
dispose
void dispose()Must be called when this RenderTheme gets destroyed to clean up and free resources. -
getLevels
int getLevels()- Returns:
- the number of distinct drawing levels required by this RenderTheme.
-
getMapBackground
int getMapBackground()- Returns:
- the map background color of this RenderTheme.
-
isMapsforgeTheme
boolean isMapsforgeTheme()Is Mapsforge or VTM theme. -
updateStyles
void updateStyles() -
scaleTextSize
void scaleTextSize(float scaleFactor) Scales the text size of this RenderTheme by the given factor.- Parameters:
scaleFactor- the factor by which the text size should be scaled.
-
transformBackwardKey
Transform internal key to tile source key. e.g. for lazy fetched tag values via tile source key. Use when tile source and internal keys have 1-1 relation.- Returns:
- the backwards transformed tag key.
-
transformForwardKey
Transform tile source key to internal key.- Returns:
- the forward transformed tag key.
-
transformBackwardTag
Transform internal tag to tile source tag. Use when tile source and internal tags have 1-1 relation.- Returns:
- the backwards transformed tag.
-
transformForwardTag
Transform tile source tag to internal tag.- Returns:
- the forward transformed tag.
-