OnGestureListenerAdapter
The class OnGestureListenerAdapter is a member of com.here.android.mpa.streetlevel.StreetLevelGesture.OnGestureListener.
Class Summary
public static abstract class StreetLevelGesture.OnGestureListener.OnGestureListenerAdapter
implements com.here.android.mpa.streetlevel.StreetLevelGesture.OnGestureListener
extends java.lang.Object
Default implementation for the OnGestureListener interface.
[For complete information, see the section Class Details]
See also:
Constructor Summary
Constructors |
---|
Method Summary
Methods |
---|
A callback indicating that the compass within the StreetLevelFragment has been selected. This method overrides streetlevel.StreetLevelGesture.OnGestureListener.onCompassSelected(void) |
A callback indicating the detection of a double tap user gesture within the StreetLevelFragment. This method overrides streetlevel.StreetLevelGesture.OnGestureListener.onDoubleTap(PointF) |
A callback indicating that one or more objects within the StreetLevelFragment has been selected. This method overrides streetlevel.StreetLevelGesture.OnGestureListener.onObjectsSelected(List) |
A callback indicating the detection of a pinch-to-zoom user gesture within the StreetLevelFragment. This method overrides streetlevel.StreetLevelGesture.OnGestureListener.onPinchZoom(float) |
A callback indicating the detection of a rotation or tilt user gesture within the StreetLevelFragment. This method overrides streetlevel.StreetLevelGesture.OnGestureListener.onRotate(PointF, PointF) |
A callback indicating the detection of a tap user gesture within the StreetLevelFragment. This method overrides streetlevel.StreetLevelGesture.OnGestureListener.onTap(PointF) |
Class Details
Default implementation for the OnGestureListener interface. Users may use this abstract class and overload specific methods to have a smaller code footprint.
See also:
Constructor Details
OnGestureListenerAdapter ()
Method Details
public boolean onCompassSelected ()
A callback indicating that the compass within the StreetLevelFragment has been selected.
This method overrides streetlevel.StreetLevelGesture.OnGestureListener.onCompassSelected(void)
public boolean onDoubleTap (PointF p)
A callback indicating the detection of a double tap user gesture within the StreetLevelFragment.
This method overrides streetlevel.StreetLevelGesture.OnGestureListener.onDoubleTap(PointF)
Parameters:
-
p
public boolean onObjectsSelected (java.util.List <StreetLevelSelectedObject> selectedObjects)
A callback indicating that one or more objects within the StreetLevelFragment has been selected.
This method overrides streetlevel.StreetLevelGesture.OnGestureListener.onObjectsSelected(List)
Parameters:
-
selectedObjects
public boolean onPinchZoom (float scaleFactor)
A callback indicating the detection of a pinch-to-zoom user gesture within the StreetLevelFragment.
This method overrides streetlevel.StreetLevelGesture.OnGestureListener.onPinchZoom(float)
Parameters:
-
scaleFactor
public boolean onRotate (PointF from, PointF to)
A callback indicating the detection of a rotation or tilt user gesture within the StreetLevelFragment.
This method overrides streetlevel.StreetLevelGesture.OnGestureListener.onRotate(PointF, PointF)
Parameters:
-
from
-
to
public boolean onTap (PointF p)
A callback indicating the detection of a tap user gesture within the StreetLevelFragment.
This method overrides streetlevel.StreetLevelGesture.OnGestureListener.onTap(PointF)
Parameters:
-
p