org.graffiti.plugin.view.interactive
Interface UserGestureListener

All Known Implementing Classes:
ToolRegistry, UserGestureDispatcher

public interface UserGestureListener

Classes implementing UserGestureListener are interested in the occurrence of user gestures. To actually be notified, UserGestureListeners are usually added to the UserGestureDispatcher returned by InteractiveView.getUserGestureDispatcher() of an appropriate view.

Version:
$Revision$ $Date$
Author:
Andreas Gleißner

Method Summary
 void canceled(InteractiveView<?> source)
          Is called when the user canceled a sequence of user gestures.
 void gesturePerformed(InteractiveView<?> source, UserGesture gesture)
          Is called when a user gesture occurs in a view.
 

Method Detail

gesturePerformed

void gesturePerformed(InteractiveView<?> source,
                      UserGesture gesture)
Is called when a user gesture occurs in a view.

Parameters:
source - the view the user gesture occurred in.
gesture - the user gesture that was performed.

canceled

void canceled(InteractiveView<?> source)
Is called when the user canceled a sequence of user gestures.

Parameters:
source - the currently active view.


Generated at 2012-05-30 11:00:36 PM CEST