org.openstreetmap.josm.data.osm.visitor.paint
Class StyledMapRenderer
java.lang.Object
org.openstreetmap.josm.data.osm.visitor.paint.AbstractMapRenderer
org.openstreetmap.josm.data.osm.visitor.paint.StyledMapRenderer
- All Implemented Interfaces:
- Rendering
public class StyledMapRenderer
- extends AbstractMapRenderer
A map renderer which renders a map according to style rules in a set of style sheets.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
styles
private ElemStyles styles
circum
private double circum
painter
private MapPainter painter
paintSettings
private MapPaintSettings paintSettings
FLAG_NORMAL
private static int FLAG_NORMAL
FLAG_DISABLED
private static int FLAG_DISABLED
FLAG_MEMBER_OF_SELECTED
private static int FLAG_MEMBER_OF_SELECTED
FLAG_SELECTED
private static int FLAG_SELECTED
StyledMapRenderer
public StyledMapRenderer(java.awt.Graphics2D g,
NavigatableComponent nc,
boolean isInactiveMode)
-
collectNodeStyles
private void collectNodeStyles(DataSet data,
StyledMapRenderer.StyleCollector sc,
BBox bbox)
collectWayStyles
private void collectWayStyles(DataSet data,
StyledMapRenderer.StyleCollector sc,
BBox bbox)
collectRelationStyles
private void collectRelationStyles(DataSet data,
StyledMapRenderer.StyleCollector sc,
BBox bbox)
render
public void render(DataSet data,
boolean renderVirtualNodes,
Bounds bounds)
- Description copied from interface:
Rendering
Renders the OSM data in data
- Parameters:
data
- the data set to be renderedrenderVirtualNodes
- if true, renders virtual nodes. Otherwise, ignores them.bounds
- the bounding box for the data to be rendered. Only objects within or intersecting
with bbox
are rendered
JOSM