public class

MotionPoint

extends Object
java.lang.Object
   ↳ com.htc.painting.engine.MotionPoint

Summary

Fields
protected float mActionAreaSize
protected float mActionPressure
protected float mDistance
protected long mTimeOffset
protected int mX
protected int mY
Public Constructors
MotionPoint(int x, int y, float pressure, float touchSize, float distance, long timeOffset)
Public Methods
float getActionAreaSize()
get touch area size of point
float getActionPressure()
get touch pressure of point
float getDistance()
get distance of the beginning of path
long getTimeOffset()
get time offset related to creation time
int getX()
get x
int getY()
get Y
void transform(Matrix m)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected float mActionAreaSize

protected float mActionPressure

protected float mDistance

protected long mTimeOffset

protected int mX

protected int mY

Public Constructors

public MotionPoint (int x, int y, float pressure, float touchSize, float distance, long timeOffset)

Parameters
pressure Normalized value from 0.0f to 1.0f
touchSize Normalized value from 0.0f to 1.0f
distance distance to the beginning of path
timeOffset time offset related to creation time of stroke

Public Methods

public float getActionAreaSize ()

get touch area size of point

public float getActionPressure ()

get touch pressure of point

public float getDistance ()

get distance of the beginning of path

public long getTimeOffset ()

get time offset related to creation time

public int getX ()

get x

public int getY ()

get Y

public void transform (Matrix m)