|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.ximtec.igesture.core.DefaultPropertyChangeNotifier
org.ximtec.igesture.core.DefaultDataObject
org.ximtec.igesture.core.GestureSample
public class GestureSample
Represents a gesture sample as for example used by the Rubine algorithm. Single gestures are represented as notes.
| Field Summary | |
|---|---|
static String |
PROPERTY_GESTURE
|
static String |
PROPERTY_NAME
|
| Fields inherited from class org.ximtec.igesture.core.DefaultDataObject |
|---|
PROPERTY_ID |
| Fields inherited from class org.ximtec.igesture.core.DefaultPropertyChangeNotifier |
|---|
propertyChangeSupport |
| Constructor Summary | |
|---|---|
GestureSample(GestureDevice<?,?> device,
String name,
org.sigtec.ink.Note gesture)
|
|
GestureSample(String name,
org.sigtec.ink.Note gesture)
Constructs a new gesture sample. |
|
| Method Summary | |
|---|---|
void |
accept(Visitor visitor)
Accepts a visitor. |
Object |
clone()
|
org.sigtec.ink.Note |
getGesture()
Returns the gesture sample. |
String |
getName()
Returns the name of the gesture sample. |
GestureDevice<?,?> |
getSource()
Get the source device of the gesture. |
void |
setGesture(org.sigtec.ink.Note gesture)
Sets the sample gesture. |
void |
setName(String name)
Sets the sample name. |
void |
setSource(GestureDevice<?,?> device)
Set the source device of the gesture. |
String |
toString()
|
| Methods inherited from class org.ximtec.igesture.core.DefaultDataObject |
|---|
getId, setId |
| Methods inherited from class org.ximtec.igesture.core.DefaultPropertyChangeNotifier |
|---|
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.ximtec.igesture.core.PropertyChangeNotifier |
|---|
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
| Field Detail |
|---|
public static final String PROPERTY_NAME
public static final String PROPERTY_GESTURE
| Constructor Detail |
|---|
public GestureSample(String name,
org.sigtec.ink.Note gesture)
name - the name of the gesture sample.note - the note the sample note.
public GestureSample(GestureDevice<?,?> device,
String name,
org.sigtec.ink.Note gesture)
| Method Detail |
|---|
public void setName(String name)
setName in interface Gesture<org.sigtec.ink.Note>name - the name to be set.public String getName()
getName in interface Gesture<org.sigtec.ink.Note>public void setGesture(org.sigtec.ink.Note gesture)
gesture - the gesture to be set.public org.sigtec.ink.Note getGesture()
getGesture in interface Gesture<org.sigtec.ink.Note>public void accept(Visitor visitor)
accept in interface DataObjectaccept in interface Gesture<org.sigtec.ink.Note>accept in class DefaultDataObjectvisitor - the visitor to be used.public Object clone()
clone in class Objectpublic String toString()
toString in class Objectpublic GestureDevice<?,?> getSource()
Gesture
getSource in interface Gesture<org.sigtec.ink.Note>public void setSource(GestureDevice<?,?> device)
Gesture
setSource in interface Gesture<org.sigtec.ink.Note>device - The source device.
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||