VisualNavigatorColors (API Reference)
Class VisualNavigatorColors
This class contains colors used by VisualNavigator to render
the route and the maneuver arrow visualization.
-
Method Summary
Modifier and TypeMethodDescriptionstatic VisualNavigatorColorsRetrieves HERE day color presets for route and maneuver arrow visualization.Gets the color used to draw maneuver arrows on the route.getRouteProgressColors(SectionTransportMode sectionTransportMode) Gets route color for visualization.Gets colors used for visualization of traffic conditions on route.static VisualNavigatorColorsRetrieves HERE night color presets for route and maneuver arrow visualization.voidsetManeuverArrowColor(Color value) Sets the color used to draw maneuver arrows on the route.voidsetRouteProgressColors(SectionTransportMode sectionTransportMode, RouteProgressColors routeProgressColors) Sets route color for visualization.voidSets colors used for visualization of traffic conditions on route.
-
Method Details
-
getRouteProgressColors
@NonNull public RouteProgressColors getRouteProgressColors(@NonNull SectionTransportMode sectionTransportMode) Gets route color for visualization.
- Parameters:
sectionTransportMode-The section transport mode.
- Returns:
The route color for visualization.
-
dayColors
Retrieves HERE day color presets for route and maneuver arrow visualization.
- Returns:
HERE day color presets for route and maneuver arrow visualization.
-
nightColors
Retrieves HERE night color presets for route and maneuver arrow visualization.
- Returns:
HERE night color presets for route and maneuver arrow visualization.
-
getManeuverArrowColor
Gets the color used to draw maneuver arrows on the route.
The object containing color used to draw maneuver arrows on the route to highlight lane directions at the end of a street. The alpha channel is ignored. The color is interpreted as fully opaque.
- Returns:
Maneuver arrow color.
-
setManeuverArrowColor
Sets the color used to draw maneuver arrows on the route. The alpha channel is ignored.
The object containing color used to draw maneuver arrows on the route to highlight lane directions at the end of a street. The alpha channel is ignored. The color is interpreted as fully opaque.
- Parameters:
value-Maneuver arrow color.
-
getTrafficOnRouteColors
Gets colors used for visualization of traffic conditions on route.
- Returns:
Colors used to visualize traffic conditions on the route ahead of the current location, for segments with a jam factor of 4.0 or higher. For route segments with a jam factor below 4.0 and those behind the current location,
RouteProgressColorsare used instead.