Android APIs
public class

GesturePoint

extends Object
java.lang.Object
   ↳ android.gesture.GesturePoint

Class Overview

A timed point of a gesture stroke. Multiple points form a stroke.

Summary

Fields
public final long timestamp
public final float x
public final float y
Public Constructors
GesturePoint(float x, float y, long t)
Public Methods
Object clone()
Creates and returns a copy of this Object.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public final long timestamp

Added in API level 4

public final float x

Added in API level 4

public final float y

Added in API level 4

Public Constructors

public GesturePoint (float x, float y, long t)

Added in API level 4

Public Methods

public Object clone ()

Added in API level 4

Creates and returns a copy of this Object. The default implementation returns a so-called "shallow" copy: It creates a new instance of the same class and then copies the field values (including object references) from this instance to the new instance. A "deep" copy, in contrast, would also recursively clone nested objects. A subclass that needs to implement this kind of cloning should call super.clone() to create the new instance and then create deep copies of the nested, mutable objects.

Returns
  • a copy of this object.