Build m5-rc15

android.view
Class MotionEvent

java.lang.Object
  extended by android.view.MotionEvent
All Implemented Interfaces:
Parcelable

public class MotionEvent
extends Object
implements Parcelable


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.Creator
 
Field Summary
static int ACTION_CANCEL
           
static int ACTION_DOWN
           
static int ACTION_MOVE
           
static int ACTION_UP
           
static Parcelable.Creator CREATOR
           
 
Constructor Summary
MotionEvent(long downTime, long eventTime, int action, float x, float y)
           
 
Method Summary
 void addBatch(float x, float y, float pressure, float size)
           
 int getAction()
           
 int getDeviceId()
           
 long getDownTime()
           
 long getEventTime()
           
 float getHistoricalPressure(int pos)
           
 float getHistoricalSize(int pos)
           
 float getHistoricalX(int pos)
           
 float getHistoricalY(int pos)
           
 int getHistorySize()
           
 float getPressure()
           
 float getRawX()
           
 float getRawY()
           
 float getSize()
           
 float getX()
           
 float getXPrecision()
           
 float getY()
           
 float getYPrecision()
           
 void offsetLocation(float deltaX, float deltaY)
           
 void setAction(int action)
           
 void setLocation(float x, float y)
           
 String toString()
           
 void writeToParcel(Parcel out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ACTION_DOWN

public static final int ACTION_DOWN
See Also:
Constant Field Values

ACTION_UP

public static final int ACTION_UP
See Also:
Constant Field Values

ACTION_MOVE

public static final int ACTION_MOVE
See Also:
Constant Field Values

ACTION_CANCEL

public static final int ACTION_CANCEL
See Also:
Constant Field Values

CREATOR

public static final Parcelable.Creator CREATOR
Constructor Detail

MotionEvent

public MotionEvent(long downTime,
                   long eventTime,
                   int action,
                   float x,
                   float y)
Method Detail

getAction

public final int getAction()

getDownTime

public final long getDownTime()

getEventTime

public final long getEventTime()

getX

public final float getX()

getY

public final float getY()

getPressure

public final float getPressure()

getSize

public final float getSize()

getRawX

public final float getRawX()

getRawY

public final float getRawY()

getXPrecision

public final float getXPrecision()

getYPrecision

public final float getYPrecision()

getHistorySize

public final int getHistorySize()

getHistoricalX

public final float getHistoricalX(int pos)

getHistoricalY

public final float getHistoricalY(int pos)

getHistoricalPressure

public final float getHistoricalPressure(int pos)

getHistoricalSize

public final float getHistoricalSize(int pos)

getDeviceId

public final int getDeviceId()

setAction

public final void setAction(int action)

offsetLocation

public final void offsetLocation(float deltaX,
                                 float deltaY)

setLocation

public final void setLocation(float x,
                              float y)

addBatch

public final void addBatch(float x,
                           float y,
                           float pressure,
                           float size)

toString

public String toString()
Overrides:
toString in class Object

writeToParcel

public void writeToParcel(Parcel out)
Specified by:
writeToParcel in interface Parcelable

Build m5-rc15

Please submit a feedback, bug or feature