FileDocCategorySizeDatePackage
GesturePoint.javaAPI DocAndroid 5.1 API1442Thu Mar 12 22:22:10 GMT 2015android.gesture

GesturePoint

public class GesturePoint extends Object
A timed point of a gesture stroke. Multiple points form a stroke.

Fields Summary
public final float
x
public final float
y
public final long
timestamp
Constructors Summary
public GesturePoint(float x, float y, long t)

        this.x = x;
        this.y = y;
        timestamp = t;
    
Methods Summary
public java.lang.Objectclone()

        return new GesturePoint(x, y, timestamp);
    
static android.gesture.GesturePointdeserialize(java.io.DataInputStream in)

        // Read X and Y
        final float x = in.readFloat();
        final float y = in.readFloat();
        // Read timestamp
        final long timeStamp = in.readLong();
        return new GesturePoint(x, y, timeStamp);