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 classMap.MapType
-
Field Summary
Fields Modifier and Type Field Description protected intcentre_xprotected intcentre_yprotected GPSBoundarym_boundaryprotected intm_googleZoomprotected Imagem_mapImageprotected Map.MapTypem_maptypeprotected intm_scaleprotected intm_x_pixelsprotected intm_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.PointAbstractGPSToRawPixel(AbstractGPS gps)static AbstractGPSdisplayToCoordinate(adams.data.filter.AbstractDerivative.Point point, int zoom)StringgenerateGoogleURL()protected booleangenerateMapImage()BufferedImagegetBufferedMapImage()intgetHeight()static MapgetMap(AbstractGPS centre, int zoomlevel, int width, int height, Map.MapType maptype)static MapgetMap(GPSBoundary boundary, int width, int height, Map.MapType maptype)static MapgetMap(Vector<AbstractGPS> v, int width, int height, Map.MapType maptype)ImagegetMapImage()intgetWidth()adams.data.filter.AbstractDerivative.PointGPSToPixel(AbstractGPS gps, int imgX, int imgY)protected static doublerad_deg(double p)voidsetBoundary(Vector<AbstractGPS> vgps)protected voidsetMapType(Map.MapType maptype)protected voidsetWidthHeight(int width, int height)voidsetZoom()
-
-
-
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()
-
-