Package org.openstreetmap.josm.actions
Class JoinNodeWayAction.NodeDistanceToRefNodeComparator
- java.lang.Object
-
- org.openstreetmap.josm.actions.JoinNodeWayAction.NodeDistanceToRefNodeComparator
-
- All Implemented Interfaces:
Serializable
,Comparator<Node>
- Enclosing class:
- JoinNodeWayAction
private static class JoinNodeWayAction.NodeDistanceToRefNodeComparator extends Object implements Comparator<Node>, 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)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
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)
-
-