public static class GestureDescription.StrokeDescription extends Object
Constructor and Description |
---|
StrokeDescription(Path path,
long startTime,
long duration) |
Modifier and Type | Method and Description |
---|---|
long |
getDuration()
Get the stroke's duration
|
Path |
getPath()
Retrieve a copy of the path for this stroke
|
long |
getStartTime()
Get the stroke's start time
|
public StrokeDescription(Path path, long startTime, long duration)
path
- The path to follow. Must have exactly one contour. The bounds of the path
must not be negative. The path must not be empty. If the path has zero length
(for example, a single moveTo()
), the stroke is a touch that doesn't move.startTime
- The time, in milliseconds, from the time the gesture starts to the
time the stroke should start. Must not be negative.duration
- The duration, in milliseconds, the stroke takes to traverse the path.
Must not be negative.public Path getPath()
public long getStartTime()
public long getDuration()