public abstract class DefaultSampleDescriptor<T> extends DefaultDescriptor
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_SAMPLES |
PROPERTY_IDpropertyChangeSupport| Constructor and Description |
|---|
DefaultSampleDescriptor()
Constructs a new sample descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor visitor)
Accepts a visitor.
|
void |
addSample(Gesture<T> sample)
Adds a sample to the descriptor.
|
Gesture<T> |
getSample(int index)
Returns the gesture sample for a given index position.
|
List<Gesture<T>> |
getSamples()
Returns the samples.
|
void |
removeSample(Gesture<T> sample)
Removes a sample from the gesture set.
|
String |
toString() |
getName, getTypegetId, setIdaddPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetId, setIdaddPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListenerpublic static final String PROPERTY_SAMPLES
public DefaultSampleDescriptor()
public Gesture<T> getSample(int index)
index - the position of the sample to be returned.public void addSample(Gesture<T> sample)
sample - the sample to be added.public void removeSample(Gesture<T> sample)
sample - the sample to be removed.public void accept(Visitor visitor)
accept in interface DataObjectaccept in class DefaultDataObjectvisitor - the visitor to be used.Copyright © 2007-2012 Global Information Systems Group, ETH Zurich. All Rights Reserved.