|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ls.widgets.map.model.MapObject
com.ls.widgets.map.location.PositionMarker
public class PositionMarker
Constructor Summary | |
---|---|
PositionMarker(MapWidget context,
java.lang.Object id,
Drawable roundPointerDrawable,
Drawable arrowPointerDrawable)
|
Method Summary | |
---|---|
void |
draw(Canvas canvas)
Draws the map object on the canvas |
Rect |
getBounds()
Returns bounds of the image that represents the map object. |
void |
setAccuracy(float accuracy)
Sets the size of accuracy area. |
void |
setArrowPointer(Drawable arrowPointer,
Point pivotPoint)
|
void |
setBearing(float bearing)
Rotates the position pointer by some degree. |
void |
setBearingEnabled(boolean hasBearing)
Enables show direction mode. |
void |
setColor(int area,
int border)
Sets the color of accuracy area and border. |
void |
setDotPointer(Drawable dotPointer,
Point pivotPoint)
|
Methods inherited from class com.ls.widgets.map.model.MapObject |
---|
equals, getDrawable, getId, getPosition, getX, getXScaled, getY, getYScaled, hashCode, isTouchable, isTouched, moveTo, moveTo, setDrawable, setPivotPoint, setPivotPoint |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PositionMarker(MapWidget context, java.lang.Object id, Drawable roundPointerDrawable, Drawable arrowPointerDrawable)
Method Detail |
---|
public void setColor(int area, int border)
color
- - Colorpublic void setAccuracy(float accuracy)
accuracy
- - accuracy in meters. You can get this value from android.location.Locationandroid.location.Location
public void setBearing(float bearing)
bearing
- - GPS bearing angle value in degrees. You can get it from android.location.Location
object.public void setDotPointer(Drawable dotPointer, Point pivotPoint)
public void setArrowPointer(Drawable arrowPointer, Point pivotPoint)
public void setBearingEnabled(boolean hasBearing)
hasBearing
- - true to show movement direction of false otherwise.public Rect getBounds()
MapObject
getBounds
in class MapObject
public void draw(Canvas canvas)
MapObject
draw
in class MapObject
canvas
- - Canvas
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |