org.ximtec.igesture.core
Class DefaultSampleDescriptor<T>
java.lang.Object
org.ximtec.igesture.core.DefaultPropertyChangeNotifier
org.ximtec.igesture.core.DefaultDataObject
org.ximtec.igesture.core.DefaultDescriptor
org.ximtec.igesture.core.DefaultSampleDescriptor<T>
- All Implemented Interfaces:
- Serializable, DataObject, Descriptor, PropertyChangeNotifier
- Direct Known Subclasses:
- SampleDescriptor, SampleDescriptor3D
public abstract class DefaultSampleDescriptor<T>
- extends DefaultDescriptor
Describes a gesture by a set of gesture samples.
- Version:
- 1.0, Dec 2006
- Author:
- Ueli Kurmann, igesture@uelikurmann.ch, Beat Signer, signer@inf.ethz.ch
- See Also:
- Serialized Form
PROPERTY_SAMPLES
public static final String PROPERTY_SAMPLES
- See Also:
- Constant Field Values
DefaultSampleDescriptor
public DefaultSampleDescriptor()
- Constructs a new sample descriptor.
getSamples
public List<Gesture<T>> getSamples()
- Returns the samples.
- Returns:
- the samples.
getSample
public Gesture<T> getSample(int index)
- Returns the gesture sample for a given index position.
- Parameters:
index - the position of the sample to be returned.
- Returns:
- the sample at the specified index position.
addSample
public void addSample(Gesture<T> sample)
- Adds a sample to the descriptor.
- Parameters:
sample - the sample to be added.
removeSample
public void removeSample(Gesture<T> sample)
- Removes a sample from the gesture set.
- Parameters:
sample - the sample to be removed.
accept
public void accept(Visitor visitor)
- Accepts a visitor.
- Specified by:
accept in interface DataObject- Overrides:
accept in class DefaultDataObject
- Parameters:
visitor - the visitor to be used.
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.