-
- All Implemented Interfaces:
-
org.osmdroid.views.overlay.IOverlayMenuProvider,org.osmdroid.views.overlay.gestures.RotationGestureDetector.RotationListener,org.osmdroid.views.util.constants.OverlayConstants
public class RotationGestureOverlay extends Overlay implements RotationGestureDetector.RotationListener, IOverlayMenuProvider
-
-
Constructor Summary
Constructors Constructor Description RotationGestureOverlay(Context context, MapView mapView)use RotationGestureOverlay instead. RotationGestureOverlay(MapView mapView)
-
Method Summary
Modifier and Type Method Description booleanonTouchEvent(MotionEvent event, MapView mapView)You can prevent all(!) other Touch-related events from happening! voidonRotate(float deltaAngle)voidonDetach(MapView map)Override to perform clean up of resources before shutdown. booleanisOptionsMenuEnabled()Can be used to signal to external callers that this Overlay should not be used for providingoption menu items. booleanonCreateOptionsMenu(Menu pMenu, int pMenuIdOffset, MapView pMapView)booleanonOptionsItemSelected(MenuItem pItem, int pMenuIdOffset, MapView pMapView)booleanonPrepareOptionsMenu(Menu pMenu, int pMenuIdOffset, MapView pMapView)voidsetOptionsMenuEnabled(boolean enabled)voidsetEnabled(boolean pEnabled)Sets whether the Overlay is marked to be enabled. -
Methods inherited from class org.osmdroid.views.overlay.Overlay
draw, draw, getBounds, isEnabled, onDetach, onDoubleTap, onDoubleTapEvent, onDown, onFling, onKeyDown, onKeyUp, onLongPress, onPause, onResume, onScroll, onShowPress, onSingleTapConfirmed, onSingleTapUp, onTouchEvent, onTrackballEvent -
Methods inherited from class org.osmdroid.views.overlay.IOverlayMenuProvider
onCreateOptionsMenu, onOptionsItemSelected, onPrepareOptionsMenu, setOptionsMenuEnabled -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
RotationGestureOverlay
RotationGestureOverlay(Context context, MapView mapView)
use RotationGestureOverlay instead.
-
RotationGestureOverlay
RotationGestureOverlay(MapView mapView)
-
-
Method Detail
-
onTouchEvent
boolean onTouchEvent(MotionEvent event, 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.
-
onRotate
void onRotate(float deltaAngle)
-
onDetach
void onDetach(MapView map)
Override to perform clean up of resources before shutdown. By default does nothing.
-
isOptionsMenuEnabled
boolean isOptionsMenuEnabled()
Can be used to signal to external callers that this Overlay should not be used for providingoption menu items.
-
onCreateOptionsMenu
boolean onCreateOptionsMenu(Menu pMenu, int pMenuIdOffset, MapView pMapView)
-
onOptionsItemSelected
boolean onOptionsItemSelected(MenuItem pItem, int pMenuIdOffset, MapView pMapView)
-
onPrepareOptionsMenu
boolean onPrepareOptionsMenu(Menu pMenu, int pMenuIdOffset, MapView pMapView)
-
setOptionsMenuEnabled
void setOptionsMenuEnabled(boolean enabled)
-
setEnabled
void setEnabled(boolean pEnabled)
Sets whether the Overlay is marked to be enabled. This setting does nothing by default, butshould be checked before calling draw().
-
-
-
-