Package org.openstreetmap.josm.actions
Class JoinNodeWayAction.NodeDistanceToRefNodeComparator
- java.lang.Object
-
- org.openstreetmap.josm.actions.JoinNodeWayAction.NodeDistanceToRefNodeComparator
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.Comparator<Node>
- Enclosing class:
- JoinNodeWayAction
private static class JoinNodeWayAction.NodeDistanceToRefNodeComparator extends java.lang.Object implements java.util.Comparator<Node>, java.io.Serializable
Sorts collinear nodes by their distance to a common reference node.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
projectToSegment
private EastNorth
refPoint
private EastNorth
refPoint2
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description NodeDistanceToRefNodeComparator(Node referenceNode, Node referenceNode2, boolean projectFirst)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Node first, Node second)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
projectToSegment
private final boolean projectToSegment
-
-
Constructor Detail
-
NodeDistanceToRefNodeComparator
NodeDistanceToRefNodeComparator(Node referenceNode, Node referenceNode2, boolean projectFirst)
-
-