|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object AbsoluteLayout de.monarchy.guideme.view.CombinationView
public class CombinationView
The CombinationView is the linking view of augmention and reality. It combines camera, POI views, direction arrow and map view and is responsible for a correct interaction between them.
Field Summary | |
---|---|
static int |
CAM_THRESHOLD
Roll below which the camera is deactivated |
static int |
MAP_THRESHOLD
Roll above which the map is deactivated |
Constructor Summary | |
---|---|
CombinationView(Activity context)
Creating a combination view for the given context. |
Method Summary | |
---|---|
boolean |
isCamActivated()
Returns whether the camera view is currently activated. |
boolean |
isMapActivated()
Returns whether the map view is currently activated. |
void |
onStart()
Callback method for when the view is becoming visible. |
void |
onStop()
Callback method for when the view is invisible. |
void |
removeRoute()
Callback method for when a route is deleted. |
void |
routingDone(RoutePoint[] points)
Callback method indicating a new route has been calculated. |
void |
setCamActivated(boolean b)
Activate or deactivate the cam view. |
void |
setMapActivated(boolean b)
Activate or deactivate the map view. |
void |
stateChanged(float[] arg)
Callback method indicating a change of the device's orientation happend. |
void |
stateChanged(GeoCoordinate arg0,
POI[] arg1)
Callback method indicating a change of the device's orientation happend. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CAM_THRESHOLD
public static final int MAP_THRESHOLD
Constructor Detail |
---|
public CombinationView(Activity context)
context
- application contextMethod Detail |
---|
public void stateChanged(float[] arg)
OrientationChangeListener
stateChanged
in interface OrientationChangeListener
arg
- new orientationpublic void stateChanged(GeoCoordinate arg0, POI[] arg1)
PositionChangeListener
stateChanged
in interface PositionChangeListener
arg0
- new positionarg1
- POIs around that spotpublic void setMapActivated(boolean b)
b
- new statuspublic boolean isMapActivated()
public void setCamActivated(boolean b)
b
- new statuspublic boolean isCamActivated()
public void onStop()
public void onStart()
public void removeRoute()
public void routingDone(RoutePoint[] points)
RoutingListener
routingDone
in interface RoutingListener
points
- array with route instructions
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |