public class TrackingMoveHelper
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static interface |
TrackingMoveHelper.onDraw
提供给外部的借口,在整个动画完成后调用
|
构造器和说明 |
---|
TrackingMoveHelper(android.content.Context context, MapView mapView, java.util.List<TrackingMoveData> list)
构造函数
|
限定符和类型 | 方法和说明 |
---|---|
TrackingMoveHelper |
Fellow(boolean fellow)
是否跟随模式,默认为否
|
static double |
getDistance(double longitude1, double latitude1, double longitude2, double latitude2) |
TrackingMoveHelper |
Icon(android.graphics.Bitmap bitmap, int bitmapWidth, int bitmapHeight)
设置图标及图标大小
|
TrackingMoveHelper |
LineStyle(Color color1, double width)
设置线的颜色和宽度
|
TrackingMoveHelper |
OnDraw(TrackingMoveHelper.onDraw onDraw)
动画绘制
|
void |
pause()
暂停
|
TrackingMoveHelper |
Precision(double precision)
动画间隔
|
void |
reStart()
重新开始动画
|
TrackingMoveHelper |
start()
开始动画
|
void |
stop()
停止
|
TrackingMoveHelper |
Time(double time)
动画完成的时间
|
public TrackingMoveHelper(android.content.Context context, MapView mapView, java.util.List<TrackingMoveData> list)
context
-mapView
-list
-public TrackingMoveHelper LineStyle(Color color1, double width)
color1
-width
-public TrackingMoveHelper Icon(android.graphics.Bitmap bitmap, int bitmapWidth, int bitmapHeight)
bitmap
-bitmapWidth
-bitmapHeight
-public void stop()
public TrackingMoveHelper OnDraw(TrackingMoveHelper.onDraw onDraw)
public TrackingMoveHelper Fellow(boolean fellow)
fellow
-public TrackingMoveHelper Time(double time)
time
-public TrackingMoveHelper start()
public void pause()
public void reStart()
public TrackingMoveHelper Precision(double precision)
precision
- 默认0.001public static double getDistance(double longitude1, double latitude1, double longitude2, double latitude2)