|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.monarchy.guideme.map.MapWrapper
public abstract class MapWrapper
MapWrapper: A class to implement an api wrapping mapping component. This will be used as a controller for an underlying map view.
Constructor Summary | |
---|---|
MapWrapper()
The mapping base class MapWrapper is initialized with all internal attributes set to true. |
Method Summary | |
---|---|
abstract void |
centerAt(GeoCoordinate g)
Centers the map view at the given coordinate. |
void |
clearTouchDelegate()
Removes the touch delegate. |
abstract GeoCoordinate |
getCenter()
Returns the center position of the map. |
abstract View |
getView()
Returns the map view the controller has power over. |
boolean |
isScrollable()
Returns whether the related view is scrollable. |
abstract void |
onOrientationChanged(float[] arg)
Callback method for when the device's orientation has changed. |
abstract void |
onPositionChanged(GeoCoordinate arg,
POI[] arg1)
Callback method indicating a change of the device's orientation happened. |
abstract void |
positionZoomControls(int x,
int y)
Sets zoom controls of the map view to the particular values. |
abstract void |
removeRoute()
Convenience method for removing the route to be mapped. |
void |
setDrawing(boolean b)
Sets whether the map has to be drawn. |
void |
setFullScreen(boolean b)
Allows the controller to inform the view about being in fullscreen mode. |
abstract void |
setRoute(RoutePoint[] route)
Callback method indicating a new route has been calculated. |
void |
setScrollable(boolean b)
Indicates whether the map view should have the ability to scroll. |
void |
setTouchDelegate(TouchDelegate d)
Sets the touch delegate for the map. |
void |
showViewDirection(boolean b)
Sets, whether the map should give a visual indicator where the device is pointing to. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapWrapper()
Method Detail |
---|
public abstract void onOrientationChanged(float[] arg)
arg
- new orientationpublic abstract void onPositionChanged(GeoCoordinate arg, POI[] arg1)
arg
- new positionarg1
- POIs around that spotpublic abstract void setRoute(RoutePoint[] route)
route
- array with route instructionspublic abstract void removeRoute()
public abstract View getView()
public abstract void positionZoomControls(int x, int y)
x
- horizontal positiony
- vertical positionpublic void setDrawing(boolean b)
b
- true, if the map view should be drawn.public void showViewDirection(boolean b)
b
- true if advice is wantedpublic void setFullScreen(boolean b)
b
- true if map is filling the whole parent.public void setScrollable(boolean b)
b
- true if scrolling is allowedpublic boolean isScrollable()
public void setTouchDelegate(TouchDelegate d)
d
- new touch delegate reacting to touches on the viewpublic void clearTouchDelegate()
public abstract void centerAt(GeoCoordinate g)
g
- position of the new centerpublic abstract GeoCoordinate getCenter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |