public class TrafficIncidentIconProvider
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TrafficIncidentIconProvider.IconSize
Determines the size of the returned drawable.
|
Constructor and Description |
---|
TrafficIncidentIconProvider(BaseTrafficIncident trafficIncident)
Creates the provider for any kind of traffic incident: standard and cluster.
|
Modifier and Type | Method and Description |
---|---|
android.graphics.drawable.Drawable |
getIcon(android.content.Context context,
TrafficIncidentIconProvider.IconSize size)
Obtains the drawable based on magnitude and category of the traffic incident.
|
public TrafficIncidentIconProvider(BaseTrafficIncident trafficIncident)
trafficIncident
- - any kind of traffic incident object (standards and cluster)public android.graphics.drawable.Drawable getIcon(android.content.Context context, TrafficIncidentIconProvider.IconSize size)
context
- - the Android's contextsize
- - the size of the returned drawable