
public class RotationGestureOverlay extends Overlay implements RotationGestureDetector.RotationListener, IOverlayMenuProvider
Overlay.Snappable| Modifier and Type | Field and Description |
|---|---|
(package private) float |
currentAngle |
(package private) long |
deltaTime |
(package private) long |
timeLastSet |
mBounds, SHADOW_X_SKEW, SHADOW_Y_SCALEDEFAULT_ZOOMLEVEL_MINIMAP_DIFFERENCE, NOT_SET| Constructor and Description |
|---|
RotationGestureOverlay(Context context,
MapView mapView)
Deprecated.
|
RotationGestureOverlay(MapView mapView) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isOptionsMenuEnabled()
Can be used to signal to external callers that this Overlay should not be used for providing
option menu items.
|
boolean |
onCreateOptionsMenu(Menu pMenu,
int pMenuIdOffset,
MapView pMapView) |
void |
onDetach(MapView map)
Override to perform clean up of resources before shutdown.
|
boolean |
onOptionsItemSelected(MenuItem pItem,
int pMenuIdOffset,
MapView pMapView) |
boolean |
onPrepareOptionsMenu(Menu pMenu,
int pMenuIdOffset,
MapView pMapView) |
void |
onRotate(float deltaAngle) |
boolean |
onTouchEvent(MotionEvent event,
MapView mapView)
You can prevent all(!) other Touch-related events from happening!
By default does nothing ( return false). |
void |
setEnabled(boolean pEnabled)
Sets whether the Overlay is marked to be enabled.
|
void |
setOptionsMenuEnabled(boolean enabled) |
draw, draw, drawAt, getBounds, getSafeMenuId, getSafeMenuIdSequence, isEnabled, onDoubleTap, onDoubleTapEvent, onDown, onFling, onKeyDown, onKeyUp, onLongPress, onPause, onResume, onScroll, onShowPress, onSingleTapConfirmed, onSingleTapUp, onTrackballEventlong timeLastSet
final long deltaTime
float currentAngle
@Deprecated public RotationGestureOverlay(Context context, MapView mapView)
RotationGestureOverlay(MapView) instead.public RotationGestureOverlay(MapView mapView)
public boolean onTouchEvent(MotionEvent event, MapView mapView)
Overlayreturn false). If you handled the Event, return true
, otherwise return false. If you returned true none of the following Overlays
or the underlying MapView has the chance to handle this event.onTouchEvent in class Overlaypublic void onRotate(float deltaAngle)
onRotate in interface RotationGestureDetector.RotationListenerpublic void onDetach(MapView map)
Overlaypublic boolean isOptionsMenuEnabled()
IOverlayMenuProviderisOptionsMenuEnabled in interface IOverlayMenuProviderpublic boolean onCreateOptionsMenu(Menu pMenu, int pMenuIdOffset, MapView pMapView)
onCreateOptionsMenu in interface IOverlayMenuProviderpublic boolean onOptionsItemSelected(MenuItem pItem, int pMenuIdOffset, MapView pMapView)
onOptionsItemSelected in interface IOverlayMenuProviderpublic boolean onPrepareOptionsMenu(Menu pMenu, int pMenuIdOffset, MapView pMapView)
onPrepareOptionsMenu in interface IOverlayMenuProviderpublic void setOptionsMenuEnabled(boolean enabled)
setOptionsMenuEnabled in interface IOverlayMenuProviderpublic void setEnabled(boolean pEnabled)
OverlaysetEnabled in class Overlay