public class GestureSample extends DefaultDataObject implements Cloneable, Gesture<org.sigtec.ink.Note>
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_GESTURE |
static String |
PROPERTY_NAME |
PROPERTY_IDpropertyChangeSupport| Constructor and Description |
|---|
GestureSample(GestureDevice<?,?> device,
String name,
org.sigtec.ink.Note gesture) |
GestureSample(String name,
org.sigtec.ink.Note gesture)
Constructs a new gesture sample.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
getId, setIdaddPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListenerequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListenerpublic static final String PROPERTY_NAME
public static final String PROPERTY_GESTURE
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)
public void setName(String name)
public String getName()
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 GestureDevice<?,?> getSource()
Gesturepublic void setSource(GestureDevice<?,?> device)
GestureCopyright © 2007-2012 Global Information Systems Group, ETH Zurich. All Rights Reserved.