public class RoutePanelViewModel
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
RoutePanelViewModel.RouteNavigationStateListener
Interface for events
|
Modifier and Type | Field and Description |
---|---|
static int |
END |
static int |
KILOMETERS_PER_HOUR |
static int |
KNOTS |
static int |
LEFT |
static int |
MILES_PER_HOUR |
static int |
RIGHT |
static int |
SHARP_LEFT |
static int |
SHARP_RIGHT |
static int |
SLIGHT_LEFT |
static int |
SLIGHT_RIGHT |
static int |
START |
static int |
STRAIGHT |
Constructor and Description |
---|
RoutePanelViewModel() |
Modifier and Type | Method and Description |
---|---|
void |
boradcastNextWaypointIntent() |
void |
broadcastEndNavIntent() |
void |
broadcastPreviousWaypointIntent() |
double |
getAverageSpeedInMetersPerSecond() |
android.util.Pair<java.lang.Integer,java.lang.String> |
getCue() |
double |
getDistanceToNextWaypoint() |
double |
getDistanceToVdo() |
java.lang.String |
getDistanceUnitsText(int units,
boolean smallIncrement) |
android.util.Pair<java.lang.Double,java.lang.String> |
getFormattedDistance(double distanceInMeters,
int units) |
java.lang.String |
getFormattedEstimatedTimeOfArrival(double distanceInMeters,
double speedInMetersPerSecond) |
android.util.Pair<java.lang.Double,java.lang.String> |
getFormattedSpeed(double speedInMetersPerSecond,
int units) |
RoutePanelViewModel.RouteNavigationStateListener |
getListener() |
double |
getSpeedInMetersPerSecond() |
java.lang.String |
getSpeedUnitsText(int units) |
int |
getUnits() |
void |
setAverageSpeedInMetersPerSecond(double averageSpeedInMetersPerSecond) |
void |
setCue(android.util.Pair<java.lang.Integer,java.lang.String> cue) |
void |
setDistanceToNextWaypoint(double distanceToNextWaypoint) |
void |
setDistanceToVDO(double distanceToVDO) |
void |
setListener(RoutePanelViewModel.RouteNavigationStateListener listener) |
void |
setSpeedInMetersPerSecond(double speedInMetersPerSecond) |
void |
setUnits(int units) |
void |
toggleUnits() |
public static final int STRAIGHT
public static final int SHARP_LEFT
public static final int LEFT
public static final int SLIGHT_LEFT
public static final int SLIGHT_RIGHT
public static final int RIGHT
public static final int SHARP_RIGHT
public static final int START
public static final int END
public static final int MILES_PER_HOUR
public static final int KILOMETERS_PER_HOUR
public static final int KNOTS
public RoutePanelViewModel.RouteNavigationStateListener getListener()
public void setListener(RoutePanelViewModel.RouteNavigationStateListener listener)
public int getUnits()
public void setUnits(int units)
public double getSpeedInMetersPerSecond()
public void setSpeedInMetersPerSecond(double speedInMetersPerSecond)
public double getDistanceToNextWaypoint()
public void setDistanceToNextWaypoint(double distanceToNextWaypoint)
public double getDistanceToVdo()
public void setDistanceToVDO(double distanceToVDO)
public android.util.Pair<java.lang.Integer,java.lang.String> getCue()
public void setCue(android.util.Pair<java.lang.Integer,java.lang.String> cue)
public double getAverageSpeedInMetersPerSecond()
public void setAverageSpeedInMetersPerSecond(double averageSpeedInMetersPerSecond)
public android.util.Pair<java.lang.Double,java.lang.String> getFormattedSpeed(double speedInMetersPerSecond, int units)
public android.util.Pair<java.lang.Double,java.lang.String> getFormattedDistance(double distanceInMeters, int units)
public java.lang.String getFormattedEstimatedTimeOfArrival(double distanceInMeters, double speedInMetersPerSecond)
public java.lang.String getDistanceUnitsText(int units, boolean smallIncrement)
public java.lang.String getSpeedUnitsText(int units)
public void toggleUnits()
public void broadcastEndNavIntent()
public void boradcastNextWaypointIntent()
public void broadcastPreviousWaypointIntent()