-
- All Implemented Interfaces:
-
org.osmdroid.views.util.constants.OverlayConstants
public class FolderOverlay extends Overlay
A org.osmdroid.views.overlay.FolderOverlay is just a group of other org.osmdroid.views.overlay.Overlays.
-
-
Constructor Summary
Constructors Constructor Description FolderOverlay(Context ctx)Use FolderOverlay instead FolderOverlay()
-
Method Summary
Modifier and Type Method Description voidsetName(String name)StringgetName()voidsetDescription(String description)StringgetDescription()List<Overlay>getItems()booleanadd(Overlay item)booleanremove(Overlay item)voiddraw(Canvas pCanvas, Projection pProjection)voiddraw(Canvas pCanvas, MapView pMapView, boolean pShadow)Draw the overlay over the map. booleanonSingleTapUp(MotionEvent e, MapView mapView)By default does nothing ( {@code return false}).booleanonSingleTapConfirmed(MotionEvent e, MapView mapView)By default does nothing ( {@code return false}).booleanonLongPress(MotionEvent e, MapView mapView)By default does nothing ( {@code return false}).booleanonTouchEvent(MotionEvent e, MapView mapView)You can prevent all(!) other Touch-related events from happening! booleanonDoubleTap(MotionEvent e, MapView mapView)By default does nothing ( {@code return false}).voidcloseAllInfoWindows()Close all opened InfoWindows of overlays it contains.This only operates on overlays that inherit from OverlayWithIW. voidonDetach(MapView mapView)Override to perform clean up of resources before shutdown. -
Methods inherited from class org.osmdroid.views.overlay.Overlay
getBounds, isEnabled, onDetach, onDoubleTap, onDoubleTapEvent, onDown, onFling, onKeyDown, onKeyUp, onLongPress, onPause, onResume, onScroll, onShowPress, onSingleTapConfirmed, onSingleTapUp, onTouchEvent, onTrackballEvent, setEnabled -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
FolderOverlay
FolderOverlay(Context ctx)
Use FolderOverlay instead
-
FolderOverlay
FolderOverlay()
-
-
Method Detail
-
setDescription
void setDescription(String description)
-
getDescription
String getDescription()
-
draw
void draw(Canvas pCanvas, Projection pProjection)
-
draw
void draw(Canvas pCanvas, MapView pMapView, boolean pShadow)
Draw the overlay over the map. This will be called on all active overlays with shadow=true,to lay down the shadow layer, and then again on all overlays with shadow=false. Callersshould check isEnabled() before calling draw(). By default, draws nothing.
changed for 5.6 to be public see https://github.com/osmdroid/osmdroid/issues/466If possible, use draw instead (cf. MapSnapshot
-
onSingleTapUp
boolean onSingleTapUp(MotionEvent e, MapView mapView)
By default does nothing (
{@code return false}). If you handled the Event, return{@code true}, otherwise return{@code false}. If you returned{@code true}none of the following Overlaysor the underlying MapView has the chance to handle this event.
-
onSingleTapConfirmed
boolean onSingleTapConfirmed(MotionEvent e, MapView mapView)
By default does nothing (
{@code return false}). If you handled the Event, return{@code true}, otherwise return{@code false}. If you returned{@code true}none of the following Overlaysor the underlying MapView has the chance to handle this event.
-
onLongPress
boolean onLongPress(MotionEvent e, MapView mapView)
By default does nothing (
{@code return false}). If you handled the Event, return{@code true}, otherwise return{@code false}. If you returned{@code true}none of the following Overlaysor the underlying MapView has the chance to handle this event.
-
onTouchEvent
boolean onTouchEvent(MotionEvent e, MapView mapView)
You can prevent all(!) other Touch-related events from happening!By default does nothing (
{@code return false}). If you handled the Event, return{@code true}, otherwise return{@code false}. If you returned{@code true}none of the following Overlaysor the underlying MapView has the chance to handle this event.
-
onDoubleTap
boolean onDoubleTap(MotionEvent e, MapView mapView)
By default does nothing (
{@code return false}). If you handled the Event, return{@code true}, otherwise return{@code false}. If you returned{@code true}none of the following Overlaysor the underlying MapView has the chance to handle this event.
-
closeAllInfoWindows
void closeAllInfoWindows()
Close all opened InfoWindows of overlays it contains.This only operates on overlays that inherit from OverlayWithIW.
-
-
-
-