public class PathLayer extends Layer
| Modifier and Type | Field and Description |
|---|---|
protected java.util.ArrayList<GeoPoint> |
mPoints
Stores points, converted to the map projection.
|
protected boolean |
mUpdatePoints |
| Constructor and Description |
|---|
PathLayer(Map map,
int lineColor) |
PathLayer(Map map,
int lineColor,
float lineWidth) |
PathLayer(Map map,
LineStyle style) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGreatCircle(GeoPoint startPoint,
GeoPoint endPoint)
Draw a great circle.
|
void |
addGreatCircle(GeoPoint startPoint,
GeoPoint endPoint,
int numberOfPoints)
Draw a great circle.
|
void |
addPoint(GeoPoint pt) |
void |
addPoint(int latitudeE6,
int longitudeE6) |
void |
clearPath() |
java.util.List<GeoPoint> |
getPoints() |
void |
setGeom(GeometryBuffer geom)
Deprecated.
|
void |
setPoints(java.util.List<GeoPoint> pts) |
void |
setStyle(LineStyle style) |
getRenderer, isEnabled, map, onDetach, setEnabledprotected final java.util.ArrayList<GeoPoint> mPoints
protected boolean mUpdatePoints
public PathLayer(Map map, int lineColor, float lineWidth)
public PathLayer(Map map, int lineColor)
public void setStyle(LineStyle style)
public void clearPath()
public void setPoints(java.util.List<GeoPoint> pts)
public void addPoint(GeoPoint pt)
public void addPoint(int latitudeE6,
int longitudeE6)
public java.util.List<GeoPoint> getPoints()
public void setGeom(GeometryBuffer geom)
public void addGreatCircle(GeoPoint startPoint, GeoPoint endPoint)
startPoint - start point of the great circleendPoint - end point of the great circle