|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.livescribe.geom.Shape
com.livescribe.geom.Stroke
public class Stroke
This class describes a stroke, or series of points. This is similar to a polyline but not the same because it contains other information such as time.
| Field Summary |
|---|
| Fields inherited from class com.livescribe.geom.Shape |
|---|
COORD_MAX, COORD_MIN, INTERSECT_CLIP, INTERSECT_EXTERNAL, INTERSECT_INTERNAL1, INTERSECT_INTERNAL2, SHAPE_COMPOSITE, SHAPE_ELLIPSE, SHAPE_LINESEGMENT, SHAPE_POINT, SHAPE_POLYGON, SHAPE_POLYLINE, SHAPE_RECTANGLE, SHAPE_STROKE, type, vertex |
| Constructor Summary | |
|---|---|
Stroke()
Creates a new stroke having no points. |
|
Stroke(int n)
Creates a new stroke having n points set to (0,0). |
|
Stroke(int[] v)
Creates a new stroke having the specified points. |
|
| Method Summary | |
|---|---|
static long |
getCoordinateTime(long startTime,
int index)
Calculates a specific coordinate's time. |
long |
getEndTime(long startTime)
Gets the stroke's end time. |
long |
getRelativeCoordinateTime(long endTime,
int index)
Gets the coordinate time in relation to the stroke's end time. |
String |
toString()
Returns a string representation of this object. |
| Methods inherited from class com.livescribe.geom.Shape |
|---|
contains, getBoundingBox, getNumberofVertices, getNumberOfVertices, getSize, getType, getUnion, getX, getXY, getY, intersectsWith, setVertexArray, setX, setXY, setXY, setY |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Stroke()
The internal Shape.vertex array is set to null.
public Stroke(int n)
n points set to (0,0).
n - the number of pointspublic Stroke(int[] v)
v - the vertex array| Method Detail |
|---|
public static long getCoordinateTime(long startTime,
int index)
startTime - the absolute start timeindex - the coordinate index
public long getRelativeCoordinateTime(long endTime,
int index)
endTime - the end timeindex - coordinate index
public long getEndTime(long startTime)
startTime - the start time of the stroke
public String toString()
toString in class Shape
|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||