© 2006-2007 ETH Zurich

org.ximtec.igesture.geco.action
Class KeyboardSimulation

java.lang.Object
  extended by org.ximtec.igesture.geco.action.KeyboardSimulation
All Implemented Interfaces:
GestureAction

public class KeyboardSimulation
extends Object
implements GestureAction

Version:
0.9, Mar 2007
Author:
Michele Croci, mcroci@gmail.com, Ueli Kurmann, ueli.kurmann@bbv.ch

Constructor Summary
KeyboardSimulation(String keys)
          Constructor.
 
Method Summary
 void actionPerformed(ResultSet resultSet)
          Runs the event handler.
 Key[] getAllKeys()
          Returns the selected keys
 void setKeys(Key[] keys)
          Set the keys to be pressed.
 String toString()
          Returns a description of the action
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeyboardSimulation

public KeyboardSimulation(String keys)
Constructor.

Parameters:
keys - the keys corresponding to the action
Method Detail

actionPerformed

public void actionPerformed(ResultSet resultSet)
Description copied from interface: GestureAction
Runs the event handler.

Specified by:
actionPerformed in interface GestureAction
Parameters:
resultSet - the result set.

setKeys

public void setKeys(Key[] keys)
Set the keys to be pressed.

Parameters:
keys - the keys corresponding to the action

getAllKeys

public Key[] getAllKeys()
Returns the selected keys

Returns:
the keys to be pressed

toString

public String toString()
Returns a description of the action

Overrides:
toString in class Object
Returns:
the keys to be pressed

© 2006-2007 ETH Zurich

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