| java.lang.Object | |||
| ↳ | com.google.android.maps.Overlay | ||
| ↳ | sofia.maps.AbstractListOverlay<Item> | ||
| ↳ | sofia.maps.RouteOverlay<Item> | ||
An overlay that displays a line on a map that connects the items in a list of arbitrary objects. These objects can have annotations on methods to provide marker information (ProvidesMarkerGeoPoint, ProvidesMarkerImage, ProvidesMarkerTitle, etc.), or alternatively a "decorator" object can be specified that provides this information given an item on the map.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.android.maps.Overlay
| |||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
sofia.maps.AbstractListOverlay
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
RouteOverlay(MapView mapView, List<Item> list, Paint routePaint)
Initializes a new
RouteOverlay. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void | draw(Canvas canvas, MapView mapView, boolean shadow) | ||||||||||
| Paint |
getRoutePaint()
Gets the
Paint object that will be used to draw the line on the
map. | ||||||||||
| void |
setRoutePaint(Paint newPaint)
Sets the
Paint object that will be used to draw the line on the
map. | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
sofia.maps.AbstractListOverlay
| |||||||||||
From class
com.google.android.maps.Overlay
| |||||||||||
From class
java.lang.Object
| |||||||||||
Initializes a new RouteOverlay.
| mapView | the MapView on which the overlay will be displayed |
|---|---|
| list | the list of objects that represent the route to be displayed |
| routePaint | the Paint object that determines the graphical
properties of the line that will be drawn
|