|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aleax.gui.gesture.Gesture
Provides storage for multiple strokes and an associated action.
Field Summary | |
java.lang.String |
description
This gesture's (human-readable) description. |
int |
id
This gesture's id. |
Constructor Summary | |
Gesture(int id,
java.lang.String description)
|
|
Gesture(int id,
java.lang.String description,
Stroke[] strokes)
|
Method Summary | |
boolean |
add(Stroke s)
Adds a stroke to the gesture if the stroke doesn't match one that is already defined |
java.lang.Object |
clone()
|
Stroke |
getStroke(int index)
|
boolean |
hasStroke(Stroke s)
Is there a stroke in the gesture that matches? |
int |
numStrokes()
|
void |
remove(int index)
Removes the stroke with the given index. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public final int id
public final java.lang.String description
Constructor Detail |
public Gesture(int id, java.lang.String description)
public Gesture(int id, java.lang.String description, Stroke[] strokes)
Method Detail |
public java.lang.Object clone()
public boolean hasStroke(Stroke s)
public boolean add(Stroke s)
public void remove(int index)
public int numStrokes()
public Stroke getStroke(int index)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |