© 2006-2007 ETH Zurich

org.ximtec.igesture.core
Class GestureSet

java.lang.Object
  extended by org.ximtec.igesture.core.DefaultPropertyChangeNotifier
      extended by org.ximtec.igesture.core.DefaultDataObject
          extended by org.ximtec.igesture.core.GestureSet
All Implemented Interfaces:
Serializable, DataObject, PropertyChangeNotifier

public class GestureSet
extends DefaultDataObject

Container to manage a set of gesture classes.

Version:
1.0, Dec 2006
Author:
Ueli Kurmann, igesture@uelikurmann.ch, Beat Signer, signer@inf.ethz.ch
See Also:
Serialized Form

Field Summary
static String PROPERTY_CLASSES
           
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
GestureSet()
          Constructs a new gesture set.
GestureSet(List<GestureClass> gestureClasses)
          Constructs a new gesture set from a list of gesture classes.
GestureSet(String name)
          Constructs a new gesture set with a given name.
 
Method Summary
 void accept(Visitor visitor)
          Accepts a visitor.
 void addGestureClass(GestureClass gestureClass)
          Adds a gesture class to the set.
 GestureClass getGestureClass(int index)
          Returns the gesture class at position index.
 GestureClass getGestureClass(String name)
          Returns the gesture class with the specified name or null if a gesture class with the specified name does not exist.
 List<GestureClass> getGestureClasses()
          Returns the list of all gesture classes the gesture set contains.
 String getName()
          Returns the name of the gesture set.
 void removeGestureClass(GestureClass gestureClass)
          Removes a gesture class from the gesture set.
 void setName(String name)
           
 int size()
          Returns the number of gesture classes the gesture set contains.
 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ximtec.igesture.core.PropertyChangeNotifier
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 

Field Detail

PROPERTY_NAME

public static final String PROPERTY_NAME
See Also:
Constant Field Values

PROPERTY_CLASSES

public static final String PROPERTY_CLASSES
See Also:
Constant Field Values
Constructor Detail

GestureSet

public GestureSet()
Constructs a new gesture set.


GestureSet

public GestureSet(String name)
Constructs a new gesture set with a given name.

Parameters:
name - the name of the gesture set to be constructed.

GestureSet

public GestureSet(List<GestureClass> gestureClasses)
Constructs a new gesture set from a list of gesture classes.

Parameters:
gestureClasses - a list of gesture classes.
Method Detail

setName

public void setName(String name)

getName

public String getName()
Returns the name of the gesture set.

Returns:
the gesture set's name.

addGestureClass

public void addGestureClass(GestureClass gestureClass)
Adds a gesture class to the set.

Parameters:
gestureClass - the gesture class to be added.

removeGestureClass

public void removeGestureClass(GestureClass gestureClass)
Removes a gesture class from the gesture set.

Parameters:
gestureClass - the gesture class to be removed.

getGestureClass

public GestureClass getGestureClass(int index)
Returns the gesture class at position index.

Parameters:
index - the index of the gesture class to be returned.
Returns:
the gesture class at position index.

size

public int size()
Returns the number of gesture classes the gesture set contains.

Returns:
the number of gesture classes the gesture set contains.

getGestureClasses

public List<GestureClass> getGestureClasses()
Returns the list of all gesture classes the gesture set contains.

Returns:
the list of all gesture classes the gesture set contains.

getGestureClass

public GestureClass getGestureClass(String name)
Returns the gesture class with the specified name or null if a gesture class with the specified name does not exist.

Parameters:
name - name of the gesture class to be returned.
Returns:
the gesture class with the given name.

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

© 2006-2007 ETH Zurich

Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.