UC Berkeley Group for User Interface Research
Updated November 17, 2000

edu.berkeley.guir.lib.gesture
Class GestureSet

java.lang.Object
  |
  +--java.util.Observable
        |
        +--edu.berkeley.guir.lib.gesture.DefaultGestureObject
              |
              +--edu.berkeley.guir.lib.gesture.AbstractGestureContainer
                    |
                    +--edu.berkeley.guir.lib.gesture.GestureSet
All Implemented Interfaces:
Cloneable, GestureContainer, GestureObject, Serializable
Direct Known Subclasses:
GestureTestSet, GestureTrainingSet

public class GestureSet
extends AbstractGestureContainer
implements Serializable, Cloneable

Collection of GestureObjects (typically GestureGroups or GestureCategorys).

See Also:
Serialized Form

Inner classes inherited from class edu.berkeley.guir.lib.gesture.AbstractGestureContainer
AbstractGestureContainer.MyCollectionListener, AbstractGestureContainer.MyPropChangeListener
 
Field Summary
protected  String keywords
           
protected  Vector members
          of GestureObject (typically GestureGroup or GestureCategory)
 
Fields inherited from class edu.berkeley.guir.lib.gesture.AbstractGestureContainer
collectionListener, listenerList, name, propChangeListener
 
Fields inherited from class edu.berkeley.guir.lib.gesture.DefaultGestureObject
author, parent, propChangeSupport, properties
 
Fields inherited from interface edu.berkeley.guir.lib.gesture.GestureContainer
CHILD_CHANGE_PROP, CHILDREN_PROP, NAME_PROP
 
Fields inherited from interface edu.berkeley.guir.lib.gesture.GestureObject
AUTHOR_PROP, ENABLED_PROP, PARENT_PROP
 
Constructor Summary
GestureSet()
           
GestureSet(Collection children)
          collection must contain valid children (see getChildTypes())
 
Method Summary
protected  void addCategories(List list, GestureContainer container)
          accumulate all the categories from container in list
 Object clone()
          A deep copy.
 void dumpNames(PrintStream out)
          For debugging.
 List getCategories()
          Return all the categories in this set
protected  List getChildren()
           
 Class[] getChildTypes()
          Valid types are GestureGroup and GestureCategory
 List getEnabledCategories()
          return all categories in this set that are enabled
 String getKeywords()
           
static GestureSet read(Reader reader)
           
 void setKeywords(String kw)
           
 String toString()
           
 void update(Observable gestureCategory, Object arg)
           
 void write(Writer writer)
           
 
Methods inherited from class edu.berkeley.guir.lib.gesture.AbstractGestureContainer
add, addCollectionListener, contains, findAncestorOfClass, fireCollectionEvent, fireCollectionEvent, fixParents, getChild, getChild, getChildList, getEnabledChildren, getName, getProperty, getUniqueName, hasProperty, indexOf, isChildType, iterator, remove, removeCollectionListener, setName, setProperty, setPropertyOnTree, size
 
Methods inherited from class edu.berkeley.guir.lib.gesture.DefaultGestureObject
addPropertyChangeListener, addPropertyChangeListener, getAuthor, getParent, isEnabled, readProperties, removePropertyChangeListener, removePropertyChangeListener, setAuthor, setEnabled, setParent, unsetProperty, writeProperties
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.berkeley.guir.lib.gesture.GestureObject
addPropertyChangeListener, addPropertyChangeListener, getAuthor, getParent, isEnabled, removePropertyChangeListener, removePropertyChangeListener, setAuthor, setEnabled, setParent, unsetProperty
 

Field Detail

keywords

protected String keywords

members

protected Vector members
of GestureObject (typically GestureGroup or GestureCategory)
Constructor Detail

GestureSet

public GestureSet()

GestureSet

public GestureSet(Collection children)
collection must contain valid children (see getChildTypes())
Method Detail

getChildren

protected List getChildren()
Overrides:
getChildren in class AbstractGestureContainer

setKeywords

public void setKeywords(String kw)

getKeywords

public String getKeywords()

addCategories

protected void addCategories(List list,
                             GestureContainer container)
accumulate all the categories from container in list

getCategories

public List getCategories()
Return all the categories in this set

getEnabledCategories

public List getEnabledCategories()
return all categories in this set that are enabled

getChildTypes

public Class[] getChildTypes()
Valid types are GestureGroup and GestureCategory

update

public void update(Observable gestureCategory,
                   Object arg)

write

public void write(Writer writer)
           throws IOException

read

public static GestureSet read(Reader reader)
                       throws IOException,
                              ParseException

clone

public Object clone()
Description copied from interface: GestureObject
A deep copy.
Overrides:
clone in class AbstractGestureContainer

dumpNames

public void dumpNames(PrintStream out)
For debugging. Print out names of all members and their sizes.

toString

public String toString()
Overrides:
toString in class Object

Copyright Information