org.openstreetmap.josm.actions.mapmode
Class ParallelWays
java.lang.Object
org.openstreetmap.josm.actions.mapmode.ParallelWays
public class ParallelWays
- extends java.lang.Object
Helper for ParallelWayAction
Constructor Summary |
ParallelWays(java.util.Collection<Way> sourceWays,
boolean copyTags,
int refWayIndex)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ways
final java.util.List<Way> ways
sortedNodes
private final java.util.List<Node> sortedNodes
nodeCount
private final int nodeCount
pts
private final EastNorth[] pts
normals
private final EastNorth[] normals
ParallelWays
public ParallelWays(java.util.Collection<Way> sourceWays,
boolean copyTags,
int refWayIndex)
isClosedPath
public boolean isClosedPath()
changeOffset
public void changeOffset(double d)
- Offsets the way(s) d units. Positive d means to the left (relative to the reference way)
- Parameters:
d
-
commit
public void commit()
makeAddWayAndNodesCommandList
private java.util.List<Command> makeAddWayAndNodesCommandList()
copyNode
private static Node copyNode(Node source,
boolean copyTags)
JOSM