|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.monarchy.guideme.map.MapWrapper de.monarchy.guideme.map.nutiteq.NutiteqWrapper
public class NutiteqWrapper
A map wrapper for the Nutiteq api.
Method Summary | |
---|---|
void |
centerAt(GeoCoordinate g)
Centers the map view at the given coordinate. |
GeoCoordinate |
getCenter()
Returns the center position of the map. |
static NutiteqWrapper |
getInstance(Context c)
Returns an instance of the NutiteqWrapper. |
View |
getView()
Returns the map view the controller has power over. |
void |
onOrientationChanged(float[] arg)
Callback method for when the device's orientation has changed. |
void |
onPositionChanged(GeoCoordinate arg,
POI[] arg1)
Callback method indicating a change of the device's orientation happened. |
void |
positionZoomControls(int x,
int y)
Sets zoom controls of the map view to the particular values. |
void |
removeRoute()
Convenience method for removing the route to be mapped. |
void |
setRoute(RoutePoint[] routePoints)
Callback method indicating a new route has been calculated. |
void |
setScrollable(boolean b)
Indicates whether the map view should have the ability to scroll. |
Methods inherited from class de.monarchy.guideme.map.MapWrapper |
---|
clearTouchDelegate, isScrollable, setDrawing, setFullScreen, setTouchDelegate, showViewDirection |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void onOrientationChanged(float[] arg)
MapWrapper
onOrientationChanged
in class MapWrapper
arg
- new orientationpublic void onPositionChanged(GeoCoordinate arg, POI[] arg1)
MapWrapper
onPositionChanged
in class MapWrapper
arg
- new positionarg1
- POIs around that spotpublic View getView()
MapWrapper
getView
in class MapWrapper
public void removeRoute()
MapWrapper
removeRoute
in class MapWrapper
public void setRoute(RoutePoint[] routePoints)
MapWrapper
setRoute
in class MapWrapper
routePoints
- array with route instructionspublic void setScrollable(boolean b)
MapWrapper
setScrollable
in class MapWrapper
b
- true if scrolling is allowedpublic void centerAt(GeoCoordinate g)
MapWrapper
centerAt
in class MapWrapper
g
- position of the new centerpublic GeoCoordinate getCenter()
MapWrapper
getCenter
in class MapWrapper
public void positionZoomControls(int x, int y)
MapWrapper
positionZoomControls
in class MapWrapper
x
- horizontal positiony
- vertical positionpublic static NutiteqWrapper getInstance(Context c)
c
- application context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |