© 2006-2007 ETH Zurich

org.ximtec.igesture.event
Class GestureActionManager

java.lang.Object
  extended by org.ximtec.igesture.event.GestureActionManager
All Implemented Interfaces:
GestureHandler

public class GestureActionManager
extends Object
implements GestureHandler

The event manager holds a set of event handlers which are executed after an event has been fired. The event manager is registered by algorithms.

Version:
1.0, Dec 2006
Author:
Ueli Kurmann, igesture@uelikurmann.ch, Beat Signer, signer@inf.ethz.ch

Constructor Summary
GestureActionManager()
          Constructs a new event manager.
 
Method Summary
 void handle(ResultSet resultSet)
          Adds the result set to the queue and starts the handler in an asynchronous mode if it is not running.
 void registerEventHandler(String className, GestureAction event)
          Registers an event.
 void registerRejectEvent(GestureAction rejectEventHandler)
          Register the reject event handler.
 void unRegisterEventHandler(String className)
          UnRegisters an event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GestureActionManager

public GestureActionManager()
Constructs a new event manager.

Method Detail

registerEventHandler

public void registerEventHandler(String className,
                                 GestureAction event)
Registers an event.

Parameters:
className - the classname for which the event handler has to be registered.
event - the event to be registered.

unRegisterEventHandler

public void unRegisterEventHandler(String className)
UnRegisters an event.

Parameters:
className - the classname for which the event handler has to be registered.

registerRejectEvent

public void registerRejectEvent(GestureAction rejectEventHandler)
Register the reject event handler. This event handler is executed if no other handler is used.

Parameters:
rejectEventHandler - the event handler to be registered.

handle

public void handle(ResultSet resultSet)
Adds the result set to the queue and starts the handler in an asynchronous mode if it is not running.

Specified by:
handle in interface GestureHandler
Parameters:
resultSet - the result set to be added to the queue.

© 2006-2007 ETH Zurich

Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.