HERE Android SDK Developer's Guide

StreetLevelRoute

The class StreetLevelRoute is a member of com.here.android.mpa.streetlevel .

Class Summary

public final class StreetLevelRoute

extends com.here.android.mpa.streetlevel.StreetLevelObject, com.here.android.mpa.common.ViewObject, java.lang.Object

Represents a route displayed within a StreetLevelFragment

[For complete information, see the section Class Details]

See also:

StreetLevelFragment

Constructor Summary

Table 1. Constructors in StreetLevelRoute
Constructors

StreetLevelRoute ()

StreetLevelRoute (Route route)

Method Summary

Table 2. Methods in StreetLevelRoute
Methods

public int getColor ()

Gets the current ARGB (Alpha/Red/Green/Blue) integer color value used to display the route.

public Route getRoute ()

Gets the Route that has been displayed on the StreetLevel.

public StreetLevelRoute setColor (int argbColor)

Sets a color for displaying the route, using an ARGB (Alpha/Red/Green/Blue) integer color value.

public StreetLevelRoute setRoute (Route route)

Sets a Route that will be displayed on the StreetLevel.

Class Details

Represents a route displayed within a StreetLevelFragment

See also:

StreetLevelFragment

Constructor Details

StreetLevelRoute ()

StreetLevelRoute (Route route)

Parameters:

  • route

Method Details

public int getColor ()

Gets the current ARGB (Alpha/Red/Green/Blue) integer color value used to display the route.

Returns:

The current 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% contribution

See also:

android.graphics.Color

public Route getRoute ()

Gets the Route that has been displayed on the StreetLevel.

Returns:

The Route

public StreetLevelRoute setColor (int argbColor)

Sets a color for displaying the route, using an ARGB (Alpha/Red/Green/Blue) integer color value.

Parameters:

  • 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% contribution

See also:

android.graphics.Color

public StreetLevelRoute setRoute (Route route)

Sets a Route that will be displayed on the StreetLevel. NOTE: Truck routes and public transport timetable routes are unsupported. A java.lang.IllegalArgumentException will be thrown.

Parameters:

  • route

    A Route representing the route to be displayed on the StreetLevel

Throws:

  • IllegalArgumentException

    if route is a truck or public transport timetable route.