// System.out.println("Distance to MapPerProject: " + Math.sqrt(Math.pow(575 - mpp.px, 2) + Math.pow(500 - mpp.py, 2)));
// System.out.println("Distance to ColorDropDownAction: " + Math.sqrt(Math.pow(575 - dda.px, 2) + Math.pow(500 - dda.py, 2)));
// KdTree kdTree = mapInstance.getKdTree();
// kdTree.setLog(new DebugLog());
System.out.println(mapInstance.nearestNeighbor(575, 500).getDocument());
}
private static Location getLocation(MapInstance mapInstance, String makeRed) {
Iterable<Location> locations = mapInstance.locations();
for (Location location : locations) {