IT. Expert System.

Android Reference

ScaleGestureDetector


android.view

Class ScaleGestureDetector

    • Method Detail

      • onTouchEvent

        public boolean onTouchEvent(MotionEvent event)
        Accepts MotionEvents and dispatches events to a ScaleGestureDetector.OnScaleGestureListener when appropriate.

        Applications should pass a complete and consistent event stream to this method. A complete and consistent event stream involves all MotionEvents from the initial ACTION_DOWN to the final ACTION_UP or ACTION_CANCEL.

        Parameters:
        event - The event to process
        Returns:
        true if the event was processed and the detector wants to receive the rest of the MotionEvents in this event stream.
      • isInProgress

        public boolean isInProgress()
        Returns true if a scale gesture is in progress.
      • getFocusX

        public float getFocusX()
        Get the X coordinate of the current gesture's focal point. If a gesture is in progress, the focal point is between each of the pointers forming the gesture. If isInProgress() would return false, the result of this function is undefined.
        Returns:
        X coordinate of the focal point in pixels.
      • getFocusY

        public float getFocusY()
        Get the Y coordinate of the current gesture's focal point. If a gesture is in progress, the focal point is between each of the pointers forming the gesture. If isInProgress() would return false, the result of this function is undefined.
        Returns:
        Y coordinate of the focal point in pixels.
      • getCurrentSpan

        public float getCurrentSpan()
        Return the average distance between each of the pointers forming the gesture in progress through the focal point.
        Returns:
        Distance between pointers in pixels.
      • getCurrentSpanX

        public float getCurrentSpanX()
        Return the average X distance between each of the pointers forming the gesture in progress through the focal point.
        Returns:
        Distance between pointers in pixels.
      • getCurrentSpanY

        public float getCurrentSpanY()
        Return the average Y distance between each of the pointers forming the gesture in progress through the focal point.
        Returns:
        Distance between pointers in pixels.
      • getPreviousSpan

        public float getPreviousSpan()
        Return the previous average distance between each of the pointers forming the gesture in progress through the focal point.
        Returns:
        Previous distance between pointers in pixels.
      • getPreviousSpanX

        public float getPreviousSpanX()
        Return the previous average X distance between each of the pointers forming the gesture in progress through the focal point.
        Returns:
        Previous distance between pointers in pixels.
      • getPreviousSpanY

        public float getPreviousSpanY()
        Return the previous average Y distance between each of the pointers forming the gesture in progress through the focal point.
        Returns:
        Previous distance between pointers in pixels.
      • getScaleFactor

        public float getScaleFactor()
        Return the scaling factor from the previous scale event to the current event. This value is defined as (getCurrentSpan() / getPreviousSpan()).
        Returns:
        The current scaling factor.
      • getTimeDelta

        public long getTimeDelta()
        Return the time difference in milliseconds between the previous accepted scaling event and the current scaling event.
        Returns:
        Time difference since the last scaling event in milliseconds.
      • getEventTime

        public long getEventTime()
        Return the event time of the current event being processed.
        Returns:
        Current event time in milliseconds.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 90 / 158778726. Delta: 0.03569 с