public class CoordinatesConverter
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Coordinate |
toCoordinate(java.awt.Point mapPoint,
Moveable controller) |
static Coordinate |
toCoordinate(java.awt.Point mapPoint,
java.awt.Point center,
java.awt.Dimension dim,
int zoom)
Converts the relative pixel coordinate (regarding the top left corner of
the displayed map) into a latitude / longitude coordinate
|
static java.awt.Point |
toMapPoint(Coordinate coordinate,
Moveable controller) |
static java.awt.Point |
toMapPoint(Coordinate coordinate,
java.awt.Point center,
java.awt.Dimension dim,
int zoom)
Calculates the position on the map of a given coordinate.
|
static java.awt.Point |
toMapPointWithCheckOutside(Coordinate coordinate,
java.awt.Point center,
java.awt.Dimension dim,
int zoom) |
public static Coordinate toCoordinate(java.awt.Point mapPoint, Moveable controller)
public static Coordinate toCoordinate(java.awt.Point mapPoint, java.awt.Point center, java.awt.Dimension dim, int zoom)
mapPoint
- center
- dim
- zoom
- public static java.awt.Point toMapPoint(Coordinate coordinate, Moveable controller)
public static java.awt.Point toMapPoint(Coordinate coordinate, java.awt.Point center, java.awt.Dimension dim, int zoom)
coordinate
- center
- dim
- zoom
- public static java.awt.Point toMapPointWithCheckOutside(Coordinate coordinate, java.awt.Point center, java.awt.Dimension dim, int zoom)