|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.silentlycrashing.gestures.GestureListener
net.silentlycrashing.gestures.ConcurrentGestureListener
public class ConcurrentGestureListener
Listens for a matching gesture while the movement is being made.
| Field Summary | |
|---|---|
protected String |
activePattern
|
| Fields inherited from class net.silentlycrashing.gestures.GestureListener |
|---|
active, bounds, ga, inBounds, offAction, onAction, p, startPoint |
| Constructor Summary | |
|---|---|
ConcurrentGestureListener(PApplet parent,
GestureAnalyzer analyzer,
String pattern)
Builds a ConcurrentGestureListener covering the entire canvas. |
|
ConcurrentGestureListener(PApplet parent,
GestureAnalyzer analyzer,
String pattern,
int x,
int y,
int w,
int h)
Builds a bounded ConcurrentGestureListener. |
|
ConcurrentGestureListener(PApplet parent,
GestureAnalyzer analyzer,
String pattern,
Rectangle bounds)
Builds a bounded ConcurrentGestureListener. |
|
| Method Summary | |
|---|---|
void |
keepListening(PointInTime pt)
Checks if the regex pattern is matched and sets the Listener as active or not. |
void |
stopListening(PointInTime pt)
Resets the Listener. |
| Methods inherited from class net.silentlycrashing.gestures.GestureListener |
|---|
activate, deactivate, getStartPoint, isActive, registerOffAction, registerOnAction, setBounds, startListening |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String activePattern
| Constructor Detail |
|---|
public ConcurrentGestureListener(PApplet parent,
GestureAnalyzer analyzer,
String pattern)
parent - the parent PAppletanalyzer - the linked GestureAnalyzerpattern - the move pattern to match for the Listener to be active
public ConcurrentGestureListener(PApplet parent,
GestureAnalyzer analyzer,
String pattern,
int x,
int y,
int w,
int h)
parent - the parent PAppletanalyzer - the linked GestureAnalyzerpattern - the move pattern to match for the Listener to be activex - the x-coordinate of the bounding Rectangley - the y-coordinate of the bounding Rectanglew - the width of the bounding Rectangleh - the height of the bounding Rectangle
public ConcurrentGestureListener(PApplet parent,
GestureAnalyzer analyzer,
String pattern,
Rectangle bounds)
parent - the parent PAppletanalyzer - the linked GestureAnalyzerpattern - the move pattern to match for the Listener to be activebounds - the bounding Rectangle| Method Detail |
|---|
public void keepListening(PointInTime pt)
keepListening in class GestureListenerpt - the current PointInTime of the gesturepublic void stopListening(PointInTime pt)
stopListening in class GestureListenerpt - the last PointInTime of the gesture
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||