public class Navigator
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addListener(NavigatorListener listener)
add listener to listener list
|
protected void |
broadcast()
broadcast changes to listeners
|
java.lang.String |
getDirectionDescription(com.graphhopper.util.Instruction instruction)
LEAVE_ROUNDABOUT = -6; -
TURN_SHARP_LEFT = -3;
TURN_LEFT = -2;
TURN_SLIGHT_LEFT = -1;
CONTINUE_ON_STREET = 0;
TURN_SLIGHT_RIGHT = 1;
TURN_RIGHT = 2;
TURN_SHARP_RIGHT = 3;
FINISH = 4;
REACHED_VIA = 5; -
USE_ROUNDABOUT = 6 -;
|
int |
getDirectionSign(com.graphhopper.util.Instruction itemData) |
java.lang.String |
getDistance() |
java.lang.String |
getDistance(com.graphhopper.util.Instruction distance) |
com.graphhopper.GHResponse |
getGhResponse() |
static Navigator |
getNavigator() |
java.lang.String |
getTime() |
java.lang.String |
getTime(com.graphhopper.util.Instruction time) |
int |
getTravelModeResId(boolean dark)
this method can only used when Variable class is ready!
|
boolean |
isOn() |
void |
setGhResponse(com.graphhopper.GHResponse ghResponse) |
void |
setOn(boolean on)
set navigator on or off
|
java.lang.String |
toString() |
public static Navigator getNavigator()
public com.graphhopper.GHResponse getGhResponse()
public void setGhResponse(com.graphhopper.GHResponse ghResponse)
public java.lang.String getDistance(com.graphhopper.util.Instruction distance)
distance
- (public java.lang.String getDistance()
public java.lang.String getTime()
public java.lang.String getTime(com.graphhopper.util.Instruction time)
public boolean isOn()
public void setOn(boolean on)
on
- protected void broadcast()
public void addListener(NavigatorListener listener)
listener
- public java.lang.String toString()
toString
in class java.lang.Object
public int getTravelModeResId(boolean dark)
dark
- (ask for dark icon resId ?)public int getDirectionSign(com.graphhopper.util.Instruction itemData)
itemData
- public java.lang.String getDirectionDescription(com.graphhopper.util.Instruction instruction)
instruction
-