public final class RouteBarScaler
extends java.lang.Object
SectionBar of a RouteDescriptionItem.
The scale factor is in the range [0, 1] and is proportional compared to the longest route which has a factor of 1.| Constructor and Description |
|---|
RouteBarScaler() |
| Modifier and Type | Method and Description |
|---|---|
float |
getScaling(com.here.android.mpa.routing.Route input)
Gets the scale factor for the given route.
|
java.util.Map<com.here.android.mpa.routing.Route,java.lang.Float> |
scaleRoutes(java.util.Collection<com.here.android.mpa.routing.Route> routes)
Calculates the scale factors for the provided routes.
|
public java.util.Map<com.here.android.mpa.routing.Route,java.lang.Float> scaleRoutes(java.util.Collection<com.here.android.mpa.routing.Route> routes)
SectionBar.routes - the routes that should be compared to find the relative scale factor for each route.public float getScaling(com.here.android.mpa.routing.Route input)
input - the route