public class LatitudeLongitudeTranslator extends Object
Modifier and Type | Field and Description |
---|---|
static double |
MARGIN_RATIO |
Constructor and Description |
---|
LatitudeLongitudeTranslator() |
Modifier and Type | Method and Description |
---|---|
void |
addCoordinates(double latitude,
double longitude) |
int |
getImageHeight() |
int |
getImageWidth() |
void |
prepareFor(double width,
double height) |
int |
translateLatitudeToY(double latitude) |
int |
translateLongitudeToX(double longitude) |
double |
translateXToLongitude(int x) |
double |
translateYToLatitude(double y) |
public static final double MARGIN_RATIO
public void addCoordinates(double latitude, double longitude)
public void prepareFor(double width, double height)
public int translateLongitudeToX(double longitude)
public int translateLatitudeToY(double latitude)
public double translateXToLongitude(int x)
public double translateYToLatitude(double y)
public int getImageWidth()
public int getImageHeight()
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.