public class TimedStroke extends Polyline2D.Float implements PropertyContainer
Polyline2D.Double, Polyline2D.Float
_coordCount
Constructor and Description |
---|
TimedStroke()
Construct a timed stroke object with an empty stroke path.
|
TimedStroke(int initSize)
Construct a timed stroke object with an empty stroke path
of the given initial size.
|
TimedStroke(TimedStroke in)
Copy constructor for efficient copying of TimedStroke
|
Modifier and Type | Method and Description |
---|---|
void |
addVertex(float x,
float y,
long timestamp)
Add a pair of x, y coordinates in the stroke path and the
corresponding timestamp.
|
Object |
getProperty(String key)
Return the property corresponding to the given key, or null if
no such property exists.
|
long |
getTimestamp(int i)
Return the timestamp of the point at the given index.
|
Iterator |
propertyNames()
Return an iteration of the names of the properties
|
void |
setProperty(String key,
Object value)
Set the property corresponding to the given key.
|
getBounds2D, getX, getY, lineTo, moveTo, setX, setY, transform, translate
contains, contains, contains, contains, getBounds, getPathIterator, getPathIterator, getVertexCount, intersects, intersects, reset, toString
public TimedStroke()
public TimedStroke(TimedStroke in)
public TimedStroke(int initSize)
public void addVertex(float x, float y, long timestamp)
public Object getProperty(String key)
getProperty
in interface PropertyContainer
public long getTimestamp(int i)
public Iterator propertyNames()
propertyNames
in interface PropertyContainer
public void setProperty(String key, Object value)
setProperty
in interface PropertyContainer
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.