Package adams.data.gps
Class Map
- java.lang.Object
-
- adams.data.gps.Map
-
public class Map extends Object
???- Author:
- dale (dale at waikato dot ac dot nz)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Map.MapType
-
Field Summary
Fields Modifier and Type Field Description protected int
centre_x
protected int
centre_y
protected GPSBoundary
m_boundary
protected int
m_googleZoom
protected Image
m_mapImage
protected Map.MapType
m_maptype
protected int
m_scale
protected int
m_x_pixels
protected int
m_y_pixels
-
Constructor Summary
Constructors Constructor Description Map()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description adams.data.filter.AbstractDerivative.Point
AbstractGPSToRawPixel(AbstractGPS gps)
static AbstractGPS
displayToCoordinate(adams.data.filter.AbstractDerivative.Point point, int zoom)
String
generateGoogleURL()
protected boolean
generateMapImage()
BufferedImage
getBufferedMapImage()
int
getHeight()
static Map
getMap(AbstractGPS centre, int zoomlevel, int width, int height, Map.MapType maptype)
static Map
getMap(GPSBoundary boundary, int width, int height, Map.MapType maptype)
static Map
getMap(Vector<AbstractGPS> v, int width, int height, Map.MapType maptype)
Image
getMapImage()
int
getWidth()
adams.data.filter.AbstractDerivative.Point
GPSToPixel(AbstractGPS gps, int imgX, int imgY)
protected static double
rad_deg(double p)
void
setBoundary(Vector<AbstractGPS> vgps)
protected void
setMapType(Map.MapType maptype)
protected void
setWidthHeight(int width, int height)
void
setZoom()
-
-
-
Field Detail
-
m_boundary
protected GPSBoundary m_boundary
-
m_googleZoom
protected int m_googleZoom
-
m_x_pixels
protected int m_x_pixels
-
m_y_pixels
protected int m_y_pixels
-
centre_x
protected int centre_x
-
centre_y
protected int centre_y
-
m_scale
protected int m_scale
-
m_mapImage
protected Image m_mapImage
-
m_maptype
protected Map.MapType m_maptype
-
-
Method Detail
-
getWidth
public int getWidth()
-
getHeight
public int getHeight()
-
setWidthHeight
protected void setWidthHeight(int width, int height)
-
setMapType
protected void setMapType(Map.MapType maptype)
-
generateMapImage
protected boolean generateMapImage()
-
getMap
public static Map getMap(AbstractGPS centre, int zoomlevel, int width, int height, Map.MapType maptype)
-
getMap
public static Map getMap(Vector<AbstractGPS> v, int width, int height, Map.MapType maptype)
-
getMap
public static Map getMap(GPSBoundary boundary, int width, int height, Map.MapType maptype)
-
setZoom
public void setZoom()
-
displayToCoordinate
public static AbstractGPS displayToCoordinate(adams.data.filter.AbstractDerivative.Point point, int zoom)
-
rad_deg
protected static double rad_deg(double p)
-
AbstractGPSToRawPixel
public adams.data.filter.AbstractDerivative.Point AbstractGPSToRawPixel(AbstractGPS gps)
-
GPSToPixel
public adams.data.filter.AbstractDerivative.Point GPSToPixel(AbstractGPS gps, int imgX, int imgY)
-
setBoundary
public void setBoundary(Vector<AbstractGPS> vgps)
-
generateGoogleURL
public String generateGoogleURL()
-
getMapImage
public Image getMapImage()
-
getBufferedMapImage
public BufferedImage getBufferedMapImage()
-
-