|
UC Berkeley Group for User Interface Research Updated November 17, 2000 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Observable | +--edu.berkeley.guir.lib.gesture.DefaultGestureObject | +--edu.berkeley.guir.lib.gesture.Gesture
Field Summary | |
static String |
CREATION_DATE_PROP
Throw out pixels closer together than the square root of this distance (in pixels). |
protected Date |
creationDate
|
protected boolean |
enabled
|
protected int |
lastx
Init lastx, lasty so the first point will be sure to be far enough away from them not to be filtered out. |
protected int |
lasty
Init lastx, lasty so the first point will be sure to be far enough away from them not to be filtered out. |
protected boolean |
normalized
|
protected TimedPolygon |
points
|
static String |
POINTS_PROP
|
Fields inherited from class edu.berkeley.guir.lib.gesture.DefaultGestureObject |
author, parent, propChangeSupport, properties |
Fields inherited from interface edu.berkeley.guir.lib.gesture.GestureObject |
AUTHOR_PROP, ENABLED_PROP, PARENT_PROP |
Constructor Summary | |
Gesture()
|
|
Gesture(Gesture g)
|
Method Summary | |
void |
addPoint(int x,
int y)
Filters out points that are too close together |
void |
clearPoints()
|
Object |
clone()
Deep-copies properties. |
void |
dump(PrintStream out)
For debugging. |
Rectangle |
getBounds()
|
Date |
getCreationDate()
|
TimedPolygon |
getPoints()
Return a copy of the points of the polygon (copy instead of ref so points can't be changed). |
Object |
getProperty(String name)
Get the value of the named property (or null if it is not set). |
boolean |
hasProperty(String name)
Returns whether the object has the current property set |
boolean |
isEnabled()
|
void |
normalize()
Move the corner of the gesture to the origin |
void |
printTiming(PrintStream out)
|
static Gesture |
read(Reader reader)
|
static Gesture |
read(TokenReader r)
|
void |
setCreationDate(Date d)
Creation date is set automatically, so normally this should not need to be called from other classes. |
void |
setEnabled(boolean e)
emits property change for property ENABLED_PROP |
void |
setEnabled(Boolean e)
|
void |
setPoints(TimedPolygon p)
This does not change the creation date. |
void |
setProperty(String name,
Object value)
Set the named property to a value. |
int |
size()
|
String |
toString()
|
void |
write(Writer writer)
|
Methods inherited from class edu.berkeley.guir.lib.gesture.DefaultGestureObject |
addPropertyChangeListener, addPropertyChangeListener, getAuthor, getParent, readProperties, removePropertyChangeListener, removePropertyChangeListener, setAuthor, 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 |
Field Detail |
public static final String CREATION_DATE_PROP
public static final String POINTS_PROP
protected int lastx
protected int lasty
protected TimedPolygon points
protected boolean normalized
protected boolean enabled
protected Date creationDate
Constructor Detail |
public Gesture()
public Gesture(Gesture g)
Method Detail |
public void addPoint(int x, int y)
public TimedPolygon getPoints()
public void setPoints(TimedPolygon p)
public void clearPoints()
public Rectangle getBounds()
public boolean isEnabled()
isEnabled
in class DefaultGestureObject
public void setEnabled(Boolean e)
public void setEnabled(boolean e)
GestureObject
setEnabled
in class DefaultGestureObject
public void normalize()
public int size()
public boolean hasProperty(String name)
GestureObject
hasProperty
in class DefaultGestureObject
public void setProperty(String name, Object value)
GestureObject
setProperty
in class DefaultGestureObject
public Object getProperty(String name)
GestureObject
getProperty
in class DefaultGestureObject
public Object clone()
DefaultGestureObject
clone
in class DefaultGestureObject
public void dump(PrintStream out)
public void printTiming(PrintStream out)
public void setCreationDate(Date d)
public Date getCreationDate()
public void write(Writer writer) throws IOException
public static Gesture read(Reader reader) throws IOException, ParseException
public static Gesture read(TokenReader r) throws IOException, ParseException
public String toString()
toString
in class Object
|
Copyright Information | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |