Package org.oscim.layers
Class PathLayer
java.lang.Object
org.oscim.layers.Layer
org.oscim.layers.PathLayer
- All Implemented Interfaces:
GestureListener
This class draws a path line in given color or texture.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.oscim.layers.Layer
Layer.EnableHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionStores points, converted to the map projection.protected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGreatCircle(GeoPoint startPoint, GeoPoint endPoint) Draw a great circle.voidaddGreatCircle(GeoPoint startPoint, GeoPoint endPoint, int numberOfPoints) Draw a great circle.voidaddPoint(int latitudeE6, int longitudeE6) voidvoidaddPoints(Collection<? extends GeoPoint> pts) voidbooleancontains(float x, float y) booleanonGesture(Gesture g, MotionEvent e) voidsetGeom(GeometryBuffer geom) Deprecated.voidsetPoints(Collection<? extends GeoPoint> pts) voidMethods inherited from class org.oscim.layers.Layer
getRenderer, isEnabled, map, onDetach, setEnabled, setEnableHandler
-
Field Details
-
mPoints
Stores points, converted to the map projection. -
mUpdatePoints
protected boolean mUpdatePoints
-
-
Constructor Details
-
PathLayer
-
PathLayer
-
PathLayer
-
-
Method Details
-
setStyle
-
clearPath
public void clearPath() -
setPoints
-
addPoint
-
addPoint
public void addPoint(int latitudeE6, int longitudeE6) -
addPoints
-
getPoints
-
setGeom
Deprecated.FIXME To be removed -
addGreatCircle
Draw a great circle. Calculate a point for every 100km along the path.- Parameters:
startPoint- start point of the great circleendPoint- end point of the great circle
-
addGreatCircle
Draw a great circle.- Parameters:
startPoint- start point of the great circleendPoint- end point of the great circlenumberOfPoints- number of points to calculate along the path
-
contains
public boolean contains(float x, float y) -
onGesture
- Specified by:
onGesturein interfaceGestureListener
-