edu.berkeley.guir.lib.gesture
Class GestureCategory
java.lang.Object
|
+--java.util.Observable
|
+--edu.berkeley.guir.lib.gesture.DefaultGestureObject
|
+--edu.berkeley.guir.lib.gesture.AbstractGestureContainer
|
+--edu.berkeley.guir.lib.gesture.GestureCategory
- All Implemented Interfaces:
- Cloneable, GestureContainer, GestureObject, Observer, Serializable
- public class GestureCategory
- extends AbstractGestureContainer
- implements Serializable, Observer, Cloneable
Collection of Gestures.
- See Also:
- Serialized Form
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 interface edu.berkeley.guir.lib.gesture.GestureObject |
addPropertyChangeListener, addPropertyChangeListener, getAuthor, getParent, isEnabled, removePropertyChangeListener, removePropertyChangeListener, setAuthor, setEnabled, setParent, unsetProperty |
gestures
protected Vector gestures
directionInvariant
protected boolean directionInvariant
orientationInvariant
protected boolean orientationInvariant
sizeInvariant
protected boolean sizeInvariant
GestureCategory
public GestureCategory()
GestureCategory
public GestureCategory(String name)
GestureCategory
public GestureCategory(Vector gestureVector,
String name)
getChildren
protected List getChildren()
- Overrides:
getChildren
in class AbstractGestureContainer
addGesture
public void addGesture(Gesture g)
gestureAt
public Gesture gestureAt(int i)
getGestureIndex
public int getGestureIndex(Gesture target)
- returns -1 if target not in the set
removeGesture
public void removeGesture(Gesture g)
replace
public void replace(GestureCategory gc)
update
public void update(Observable gesture,
Object arg)
- Specified by:
update
in interface Observer
isDot
public boolean isDot()
clone
public Object clone()
- Description copied from interface:
GestureObject
- A deep copy.
- Overrides:
clone
in class AbstractGestureContainer
isSizeInvariant
public boolean isSizeInvariant()
setSizeInvariance
public void setSizeInvariance(boolean on)
isDirectionInvariant
public boolean isDirectionInvariant()
setDirectionInvariance
public void setDirectionInvariance(boolean on)
isOrientationInvariant
public boolean isOrientationInvariant()
setOrientationInvariance
public void setOrientationInvariance(boolean on)
setExamplesEnabled
public void setExamplesEnabled(boolean enabled)
- Enable or disable all examples
getChildTypes
public Class[] getChildTypes()
- Description copied from interface:
GestureContainer
- Returns an array of all the valid types for children of this
container.
write
public void write(Writer writer)
throws IOException
read
public static GestureCategory read(Reader reader)
throws IOException,
ParseException
read
public static GestureCategory read(TokenReader r)
throws IOException,
ParseException
toString
public String toString()
- Overrides:
toString
in class Object