public class NavigationInstrumentPanel extends java.lang.Object implements RoutePanelViewModel.RouteNavigationStateListener, android.content.SharedPreferences.OnSharedPreferenceChangeListener, RootLayoutWidget.OnLayoutChangedListener
Constructor and Description |
---|
NavigationInstrumentPanel(MapView mapView,
RoutePanelViewModel stateManager) |
Modifier and Type | Method and Description |
---|---|
MapView |
getMapView() |
RoutePanelViewModel |
getStateManager() |
void |
onDistanceToNextWaypointChanged(double distance,
java.lang.String units) |
void |
onDistanceToVdoChanged(double distance,
java.lang.String units) |
void |
onEstimatedTimeOfArrivalToNextWaypointChanged(java.lang.String eta) |
void |
onEstimatedTimeOfArrivalToVdoChanged(java.lang.String eta) |
void |
onLayoutChanged()
Layout has been changed in some way
|
void |
onNavigationCueCleared() |
void |
onNavigationCueReceived(int direction,
java.lang.String text) |
void |
onSharedPreferenceChanged(android.content.SharedPreferences p,
java.lang.String key) |
void |
onSpeedChanged(double speed,
java.lang.String units) |
void |
removeWidgets() |
void |
setMapView(MapView mapView) |
public NavigationInstrumentPanel(MapView mapView, RoutePanelViewModel stateManager)
public RoutePanelViewModel getStateManager()
public MapView getMapView()
public void setMapView(MapView mapView)
public void onSharedPreferenceChanged(android.content.SharedPreferences p, java.lang.String key)
onSharedPreferenceChanged
in interface android.content.SharedPreferences.OnSharedPreferenceChangeListener
public void removeWidgets()
public void onSpeedChanged(double speed, java.lang.String units)
onSpeedChanged
in interface RoutePanelViewModel.RouteNavigationStateListener
public void onDistanceToNextWaypointChanged(double distance, java.lang.String units)
onDistanceToNextWaypointChanged
in interface RoutePanelViewModel.RouteNavigationStateListener
public void onNavigationCueReceived(int direction, java.lang.String text)
onNavigationCueReceived
in interface RoutePanelViewModel.RouteNavigationStateListener
public void onEstimatedTimeOfArrivalToNextWaypointChanged(java.lang.String eta)
onEstimatedTimeOfArrivalToNextWaypointChanged
in interface RoutePanelViewModel.RouteNavigationStateListener
public void onNavigationCueCleared()
onNavigationCueCleared
in interface RoutePanelViewModel.RouteNavigationStateListener
public void onDistanceToVdoChanged(double distance, java.lang.String units)
onDistanceToVdoChanged
in interface RoutePanelViewModel.RouteNavigationStateListener
public void onEstimatedTimeOfArrivalToVdoChanged(java.lang.String eta)
onEstimatedTimeOfArrivalToVdoChanged
in interface RoutePanelViewModel.RouteNavigationStateListener
public void onLayoutChanged()
RootLayoutWidget.OnLayoutChangedListener
onLayoutChanged
in interface RootLayoutWidget.OnLayoutChangedListener