public class

RouteOverlay

extends AbstractListOverlay<Item>
java.lang.Object
   ↳ com.google.android.maps.Overlay
     ↳ sofia.maps.AbstractListOverlay<Item>
       ↳ sofia.maps.RouteOverlay<Item>

Class Overview

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.

Summary

[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

Public Constructors

public RouteOverlay (MapView mapView, List<Item> list, Paint routePaint)

Initializes a new RouteOverlay.

Parameters
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

Public Methods

public void draw (Canvas canvas, MapView mapView, boolean shadow)

public Paint getRoutePaint ()

Gets the Paint object that will be used to draw the line on the map.

Returns
  • the Paint object that will be used to draw the line on the map

public void setRoutePaint (Paint newPaint)

Sets the Paint object that will be used to draw the line on the map.

Parameters
newPaint the Paint object that will be used to draw the line on the map