Immutable style settings for customizing a polyline's traffic colors managed by the
ConsumerController. Values in the style that are left null will be
replaced by SDK-set default values when the style is set in
ConsumerMapStyle.
Nested Class Summary
| class | TrafficStyle.Builder | Builder for
TrafficStyle. |
|
Constant Summary
| float | TRAFFIC_JAM_Z_INDEX_ADDITION | Additional Z index for jammed traffic |
| float | TRAFFIC_NORMAL_Z_INDEX_ADDITION | Additional Z index for normal traffic |
| float | TRAFFIC_SLOW_Z_INDEX_ADDITION | Additional Z index for slow traffic |
Public Constructor Summary
Public Method Summary
| static TrafficStyle.Builder |
builder()
Builder for
TrafficStyle.
|
| abstract boolean | |
| abstract Integer |
getTrafficColor(int speedType)
Returns the polyline segment color for a given traffic speed.
|
| abstract Boolean |
getTrafficVisibility()
Returns whether traffic is visible for this polyline style.
|
| abstract int |
hashCode()
|
| abstract TrafficStyle.Builder |
Inherited Method Summary
Constants
public static final float TRAFFIC_JAM_Z_INDEX_ADDITION
Additional Z index for jammed traffic
public static final float TRAFFIC_NORMAL_Z_INDEX_ADDITION
Additional Z index for normal traffic
public static final float TRAFFIC_SLOW_Z_INDEX_ADDITION
Additional Z index for slow traffic
Public Constructors
public TrafficStyle ()
Public Methods
public static TrafficStyle.Builder builder ()
Builder for
TrafficStyle.
public abstract boolean equals (Object otherStyle)
Compares each field to determine whether this style is equal to another TrafficStyle.
Parameters
| otherStyle | the reference style with which to compare. |
|---|
Returns
- true if this style the same as the supplied otherStyle.
public abstract Integer getTrafficColor (int speedType)
Returns the polyline segment color for a given traffic speed.
Parameters
| speedType | an integer representing the traffic
TrafficData.SpeedReadingInterval.SpeedType. |
|---|
Returns
- the polyline segment color for a given traffic speed.
public abstract Boolean getTrafficVisibility ()
Returns whether traffic is visible for this polyline style.
Returns
- whether traffic is visible for this style.