android.view
Class VelocityTracker

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

public final class VelocityTracker
extends Object


Method Summary
 void addMovement(MotionEvent ev)
           
 void clear()
           
 void computeCurrentVelocity(int units)
           
 void computeCurrentVelocity(int units, float maxVelocity)
           
 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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

obtain

public static VelocityTracker obtain()

recycle

public void recycle()

clear

public void clear()

addMovement

public void addMovement(MotionEvent ev)

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-2010. All Rights Reserved.