org.openstreetmap.josm.data.osm.visitor.paint
Class StyledMapRenderer.OffsetIterator
java.lang.Object
org.openstreetmap.josm.data.osm.visitor.paint.StyledMapRenderer.OffsetIterator
- All Implemented Interfaces:
- java.util.Iterator<java.awt.Point>
- Enclosing class:
- StyledMapRenderer
private class StyledMapRenderer.OffsetIterator
- extends java.lang.Object
- implements java.util.Iterator<java.awt.Point>
Iterates over a list of Way Nodes and returns screen coordinates that
represent a line that is shifted by a certain offset perpendicular
to the way direction.
There is no intention, to handle consecutive duplicate Nodes in a
perfect way, but it is should not throw an exception.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nodes
private java.util.List<Node> nodes
offset
private float offset
idx
private int idx
prev
private java.awt.Point prev
x_prev0
private int x_prev0
y_prev0
private int y_prev0
StyledMapRenderer.OffsetIterator
public StyledMapRenderer.OffsetIterator(java.util.List<Node> nodes,
float offset)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator<java.awt.Point>
next
public java.awt.Point next()
- Specified by:
next
in interface java.util.Iterator<java.awt.Point>
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator<java.awt.Point>
JOSM