Class VisualNavigatorColors

java.lang.Object
com.here.NativeBase
com.here.sdk.navigation.VisualNavigatorColors

public final class VisualNavigatorColors extends NativeBase

This class contains colors used by VisualNavigator to render the route and the maneuver arrow visualization.

  • Method Details

    • setRouteProgressColors

      public void setRouteProgressColors(@NonNull SectionTransportMode sectionTransportMode, @NonNull RouteProgressColors routeProgressColors)

      Sets route color for visualization.

      Parameters:
      sectionTransportMode -

      The section transport mode.

      routeProgressColors -

      The route progress colors.

    • 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

      @NonNull public static VisualNavigatorColors dayColors()

      Retrieves HERE day color presets for route and maneuver arrow visualization.

      Returns:

      HERE day color presets for route and maneuver arrow visualization.

    • nightColors

      @NonNull public static VisualNavigatorColors nightColors()

      Retrieves HERE night color presets for route and maneuver arrow visualization.

      Returns:

      HERE night color presets for route and maneuver arrow visualization.

    • getManeuverArrowColor

      @NonNull public Color 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

      public void setManeuverArrowColor(@NonNull Color value)

      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

      @NonNull public TrafficOnRouteColors 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, RouteProgressColors are used instead.

    • setTrafficOnRouteColors

      public void setTrafficOnRouteColors(@NonNull TrafficOnRouteColors value)

      Sets colors used for visualization of traffic conditions on route.

      Parameters:
      value -

      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, RouteProgressColors are used instead.