final class ImproveWayAccuracyHelper extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
ImproveWayAccuracyHelper() |
Modifier and Type | Method and Description |
---|---|
static Node |
findCandidateNode(MapView mv,
Way w,
java.awt.Point p)
Returns the nearest node to cursor.
|
static WaySegment |
findCandidateSegment(MapView mv,
Way w,
java.awt.Point p)
Returns the nearest way segment to cursor.
|
static Way |
findWay(MapView mv,
java.awt.Point p)
Finds the way to work on.
|
private ImproveWayAccuracyHelper()
public static Way findWay(MapView mv, java.awt.Point p)
mv
- the current map viewp
- the cursor positionWay
or null
in case there is nothing under the cursor.public static Node findCandidateNode(MapView mv, Way w, java.awt.Point p)
mv
- the current map vieww
- the way to checkp
- the cursor positionpublic static WaySegment findCandidateSegment(MapView mv, Way w, java.awt.Point p)
mv
- the current map vieww
- the way to checkp
- the cursor position