Home | History | Annotate | Download | only in gestures

Lines Matching full:scalegesturedetector

110     // Let the ScaleGestureDetector inspect all events.
269 provides {@link android.view.ScaleGestureDetector}. {@link
270 android.view.GestureDetector} and {@link android.view.ScaleGestureDetector} can
274 passed to their constructors. {@link android.view.ScaleGestureDetector} uses
275 {@link android.view.ScaleGestureDetector.OnScaleGestureListener}.
277 {@link android.view.ScaleGestureDetector.SimpleOnScaleGestureListener}
285 <pre>private ScaleGestureDetector mScaleDetector;
292 mScaleDetector = new ScaleGestureDetector(context, new ScaleListener());
297 // Let the ScaleGestureDetector inspect all events.
315 extends ScaleGestureDetector.SimpleOnScaleGestureListener {
317 public boolean onScale(ScaleGestureDetector detector) {
334 using the {@link android.view.ScaleGestureDetector} "span"
335 ({@link android.view.ScaleGestureDetector#getCurrentSpanX getCurrentSpanX/Y}) and
336 "focus" ({@link android.view.ScaleGestureDetector#getFocusX getFocusX/Y}) features:</p>
342 private ScaleGestureDetector mScaleGestureDetector;
353 private final ScaleGestureDetector.OnScaleGestureListener mScaleGestureListener
354 = new ScaleGestureDetector.SimpleOnScaleGestureListener() {
365 public boolean onScaleBegin(ScaleGestureDetector scaleGestureDetector) {
367 getCurrentSpanX(scaleGestureDetector);
369 getCurrentSpanY(scaleGestureDetector);
374 public boolean onScale(ScaleGestureDetector scaleGestureDetector) {
377 getCurrentSpanX(scaleGestureDetector);
379 getCurrentSpanY(scaleGestureDetector);
384 float focusX = scaleGestureDetector.getFocusX();
385 float focusY = scaleGestureDetector.getFocusY();
388 hitTest(scaleGestureDetector.getFocusX(),
389 scaleGestureDetector.getFocusY(),