java.lang.Object | |
↳ | android.gesture.GestureStroke |
A gesture stroke started on a touch down and ended on a touch up. A stroke consists of a sequence of timed points. One or multiple strokes form a gesture.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boundingBox | |||||||||||
length | |||||||||||
points |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A constructor that constructs a gesture stroke from a list of gesture points.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Invalidates the cached path that is used to render the stroke.
| |||||||||||
Creates and returns a copy of this
Object . | |||||||||||
Computes an oriented bounding box of the stroke.
| |||||||||||
Converts the stroke to a Path of a given number of points.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
A constructor that constructs a gesture stroke from a list of gesture points.
Invalidates the cached path that is used to render the stroke.
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.
Computes an oriented bounding box of the stroke.
Converts the stroke to a Path of a given number of points.
width | the width of the bounding box of the target path |
---|---|
height | the height of the bounding box of the target path |
numSample | the number of points needed |