-
- All Implemented Interfaces:
-
com.flyjingfish.openimagelib.photoview.ScaleGestureDetector.OnScaleGestureListener
public class ScaleGestureDetector.SimpleOnScaleGestureListener implements ScaleGestureDetector.OnScaleGestureListener
A convenience class to extend when you only want to listen for a subsetof scaling-related events. This implements all methods in OnScaleGestureListener but does nothing. onScale returns
{@code false}so that a subclass can retrieve the accumulated scalefactor in an overridden onScaleEnd. onScaleBegin returns{@code true}.
-
-
Method Summary
Modifier and Type Method Description booleanonScale(ScaleGestureDetector detector)Responds to scaling events for a gesture in progress.Reported by pointer motion. booleanonScaleBegin(ScaleGestureDetector detector)Responds to the beginning of a scaling gesture. voidonScaleEnd(ScaleGestureDetector detector)Responds to the end of a scale gesture. -
-
Method Detail
-
onScale
boolean onScale(ScaleGestureDetector detector)
Responds to scaling events for a gesture in progress.Reported by pointer motion.
- Parameters:
detector- The detector reporting the event - use this toretrieve extended info about event state.
-
onScaleBegin
boolean onScaleBegin(ScaleGestureDetector detector)
Responds to the beginning of a scaling gesture. Reported bynew pointers going down.
- Parameters:
detector- The detector reporting the event - use this toretrieve extended info about event state.
-
onScaleEnd
void onScaleEnd(ScaleGestureDetector detector)
Responds to the end of a scale gesture. Reported by existingpointers going up.Once a scale has ended, getFocusX and getFocusY will return focal pointof the pointers remaining on the screen.
- Parameters:
detector- The detector reporting the event - use this toretrieve extended info about event state.
-
-
-
-