/** * If the map isn't rotated, this provides the same coordinates as the getX() and getY() methods * would. If the map is rotated, this method provides the projected coordinates of the MouseEvent, * i.e. the location of the MouseEvent in the non-rotated pixel space of the projection. * * @return Point2D coordinates of location of mouse position */ public Point2D getProjectedLocation() { if (map != null) { return map.getNonRotatedLocation(this); } else { return new Point2D.Double(getX(), getY()); } }