Modifier and Type | Class and Description |
---|---|
static class |
MapRoute.RenderType
Render classification of the route.
|
MapObject.Type
Constructor and Description |
---|
MapRoute()
Creates a
MapRoute object. |
MapRoute(Route route)
Creates a
MapRoute with a specified Route . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
getColor()
Returns the current ARGB (Alpha/Red/Green/Blue) integer color value used to display this
route.
|
MapRoute.RenderType |
getRenderType()
Get the
RenderType associated with this MapRoute . |
Route |
getRoute()
Returns the
Route that has been displayed on the Map . |
MapObject.Type |
getType()
Returns the type of object that this
MapObject represents. |
int |
hashCode() |
boolean |
isManeuverNumberVisible()
Returns a
boolean indicating whether maneuver numbers are displayed along with this
route. |
MapRoute |
setColor(int argbColor)
Sets a color for displaying the route, using an ARGB (Alpha/Red/Green/Blue) integer color
value.
|
MapRoute |
setManeuverNumberVisible(boolean visible)
Sets maneuver numbers to be either displayed along with this route or not displayed.
|
MapRoute |
setRenderType(MapRoute.RenderType type)
Sets the
RenderType associated with this MapRoute . |
MapRoute |
setRoute(Route route)
Sets a
Route that will be displayed on the Map . |
getBaseType, getParent, getVisibleMask, getZIndex, isVisible, resetVisibleMask, setVisible, setVisible, setVisible, setVisibleMask, setVisibleMask, setZIndex, unsetVisibleMask, unsetVisibleMask
public MapRoute()
MapRoute
object.public MapRoute(Route route)
MapRoute
with a specified Route
.
Typically, a MapRoute
is created after a Route
has been calculated. An
application can pass a calculated Route
as a parameter to this method instead of
making an explicit call to setRoute(Route)
. Adding the new MapRoute
object
to a Map
can be done by way of the Map.addMapObject(MapObject)
method.
route
- A calculated Route
used to set to the MapRoute
public boolean isManeuverNumberVisible()
boolean
indicating whether maneuver numbers are displayed along with this
route.public MapRoute setManeuverNumberVisible(boolean visible)
visible
- A boolean
specifying whether maneuver numbers are displayedMapRoute
itself.public int getColor()
public MapRoute setColor(int argbColor)
argbColor
- The ARGB integer color value. The packed integer is made up of 4 bytes: alpha,
red, green, blue. Each color component has a value range from [0..255], with 0
meaning no contribution for that component and 255 meaning 100% contributionMapRoute
itself.public Route getRoute()
Route
that has been displayed on the Map
.Route
public MapRoute setRoute(Route route)
Route
that will be displayed on the Map
.route
- A Route
representing the route to be displayed on the Map
.MapRoute
itself.public MapRoute setRenderType(MapRoute.RenderType type)
RenderType
associated with this MapRoute
. Note changing the
color will change the RenderType
to custom. Also note, the render type must be set
before adding the MapRoute
Object to a Maptype
- RenderType
MapRoute
itself.public MapRoute.RenderType getRenderType()
RenderType
associated with this MapRoute
.RenderType
public MapObject.Type getType()
MapObject
MapObject
represents.getType
in class MapObject
MapObject.Type
values