public class GestureSignature extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
GestureSignature.Position |
| Constructor and Description |
|---|
GestureSignature(org.sigtec.ink.Note note,
GestureClass gestureClass,
int rasterSize,
int gridSize)
Constructs a new gesture signature.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSignature(BitSet bit)
Appends a point (signature point) to the gesture signature.
|
int |
getBitStringLength()
Returns the lenght of the bit string for a single point.
|
GestureClass |
getGestureClass()
Returns the gesture class this signature belongs to.
|
int |
getNumberOfPoints()
Returns the number of points in the signature.
|
BitSet |
getPointSignature(int index)
Returns the signature for the point at position index.
|
String |
toString() |
public GestureSignature(org.sigtec.ink.Note note,
GestureClass gestureClass,
int rasterSize,
int gridSize)
note - the note.gestureClass - the gesture class.rasterSize - the raster's size.gridSize - the number of cells the grid have in a row.public void addSignature(BitSet bit)
bit - the signature point to be added.public BitSet getPointSignature(int index)
index - the position of the signature to be returned.public int getNumberOfPoints()
public int getBitStringLength()
public GestureClass getGestureClass()
Copyright © 2007-2012 Global Information Systems Group, ETH Zurich. All Rights Reserved.