public class PathOverlay extends Overlay
Overlay.Snappable
Modifier and Type | Field and Description |
---|---|
protected android.graphics.Paint |
mPaint
Paint settings.
|
mResourceProxy, mScale, SHADOW_X_SKEW, SHADOW_Y_SCALE
DEBUGMODE, DEFAULT_ZOOMLEVEL_MINIMAP_DIFFERENCE, NOT_SET
Constructor and Description |
---|
PathOverlay(int color,
android.content.Context ctx) |
PathOverlay(int color,
float width,
ResourceProxy resourceProxy) |
PathOverlay(int color,
ResourceProxy resourceProxy) |
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(IGeoPoint aPoint) |
void |
addPoint(int aLatitudeE6,
int aLongitudeE6) |
void |
addPoints(IGeoPoint... aPoints) |
void |
addPoints(List<IGeoPoint> aPoints) |
void |
clearPath() |
protected void |
draw(android.graphics.Canvas canvas,
MapView mapView,
boolean shadow)
This method draws the line.
|
int |
getNumberOfPoints() |
android.graphics.Paint |
getPaint() |
void |
setAlpha(int a) |
void |
setColor(int color) |
void |
setPaint(android.graphics.Paint pPaint) |
drawAt, getSafeMenuId, getSafeMenuIdSequence, isEnabled, onDetach, onDoubleTap, onDoubleTapEvent, onDown, onFling, onKeyDown, onKeyUp, onLongPress, onScroll, onShowPress, onSingleTapConfirmed, onSingleTapUp, onTouchEvent, onTrackballEvent, setEnabled
public PathOverlay(int color, android.content.Context ctx)
public PathOverlay(int color, ResourceProxy resourceProxy)
public PathOverlay(int color, float width, ResourceProxy resourceProxy)
public void setColor(int color)
public void setAlpha(int a)
public void addGreatCircle(GeoPoint startPoint, GeoPoint endPoint)
startPoint
- start point of the great circleendPoint
- end point of the great circlepublic void addGreatCircle(GeoPoint startPoint, GeoPoint endPoint, int numberOfPoints)
startPoint
- start point of the great circleendPoint
- end point of the great circlenumberOfPoints
- number of points to calculate along the pathpublic android.graphics.Paint getPaint()
public void setPaint(android.graphics.Paint pPaint)
public void clearPath()
public void addPoint(IGeoPoint aPoint)
public void addPoint(int aLatitudeE6, int aLongitudeE6)
public void addPoints(IGeoPoint... aPoints)
public int getNumberOfPoints()
Copyright © 2014. All Rights Reserved.