android.view
Class MotionEvent
java.lang.Object
android.view.MotionEvent
- All Implemented Interfaces:
- Parcelable
public class MotionEvent
- extends Object
- implements Parcelable
|
Constructor Summary |
MotionEvent(long downTime,
long eventTime,
int action,
float x,
float y)
|
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
MotionEvent
public MotionEvent(long downTime,
long eventTime,
int action,
float x,
float y)
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
Please submit a feedback, bug or feature