|
CIC iSign Version 1.2 | ||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||
java.lang.Object | +--InkTools.CicStroke
This class defines the CIC stroke object. The line (data) between the pen down and the pen up constitudes a stroke. In InkTools the signatures are stored in CicDoodle objects which stores the data as an array of CicStrokes objects. A signatures contains several strokes or only one stroke.
| Constructor Summary | |
CicStroke()
Creates empty CicStroke object. |
|
CicStroke(CicStroke newStroke)
Creates a new CicStroke object and copies the stroke data from newStroke into it (clone). |
|
| Method Summary | |
void |
addOffset(int xOffset,
int yOffset)
Adds the Offset to the Stroke. |
void |
addPoint(java.awt.Point point)
Adds the point to the stroke. |
int |
getNumberOfPoints()
Returns the number of points within this Stroke |
java.awt.Point |
getPoint(int index)
Returns the Point object of index within this Stroke. |
void |
takePoint(java.awt.Point p)
Adds the point to the stroke. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CicStroke()
public CicStroke(CicStroke newStroke)
newStroke - the stroke from which the new stroke gets constructed| Method Detail |
public void addOffset(int xOffset,
int yOffset)
xOffset - the value added to the x coordinatesyOffset - the value added to the y coordinatespublic void addPoint(java.awt.Point point)
point - the point which gets added to this strokepublic void takePoint(java.awt.Point p)
p - the point which gets added to this strokepublic int getNumberOfPoints()
public java.awt.Point getPoint(int index)
index - the index number of the point to retrieve
|
CIC iSign Version 1.2 | ||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||