android.view
Class VelocityTracker

java.lang.Object
  extended by android.view.VelocityTracker

public final class VelocityTracker
extends Object


Method Summary
 void addMovement(MotionEvent event)
           
 void clear()
           
 void computeCurrentVelocity(int units)
           
 void computeCurrentVelocity(int units, float maxVelocity)
           
protected  void finalize()
           
 float getXVelocity()
           
 float getXVelocity(int id)
           
 float getYVelocity()
           
 float getYVelocity(int id)
           
static VelocityTracker obtain()
           
 void recycle()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

obtain

public static VelocityTracker obtain()

recycle

public void recycle()

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable

clear

public void clear()

addMovement

public void addMovement(MotionEvent event)

computeCurrentVelocity

public void computeCurrentVelocity(int units)

computeCurrentVelocity

public void computeCurrentVelocity(int units,
                                   float maxVelocity)

getXVelocity

public float getXVelocity()

getYVelocity

public float getYVelocity()

getXVelocity

public float getXVelocity(int id)

getYVelocity

public float getYVelocity(int id)


Copyright © 2008-2012. All Rights Reserved.