synergynetframework.awt
Class MultiTouchEventDispatcher

java.lang.Object
  extended by synergynetframework.awt.MultiTouchEventDispatcher
All Implemented Interfaces:
IMultiTouchEventListener

public class MultiTouchEventDispatcher
extends java.lang.Object
implements IMultiTouchEventListener

Experimental class to have multi-touch input cause AWT events.

Author:
dcs0ah1

Constructor Summary
MultiTouchEventDispatcher(java.awt.Component target)
          Instantiates a new multi touch event dispatcher.
 
Method Summary
 void cursorChanged(MultiTouchCursorEvent evt)
          Cursor is on the table, and moves, or rotates, or changes in some way.
 void cursorClicked(MultiTouchCursorEvent arg0)
          Cursor clicked.
 void cursorPressed(MultiTouchCursorEvent evt)
          Cursor press arriving on the table.
 void cursorReleased(MultiTouchCursorEvent evt)
          Cursor left the table.
 void objectAdded(MultiTouchObjectEvent arg0)
          Object/fiducial is added to the table.
 void objectChanged(MultiTouchObjectEvent arg0)
          Object/fiducial is changed - position or rotation.
 void objectRemoved(MultiTouchObjectEvent arg0)
          Object/fiducial is removed from the table.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiTouchEventDispatcher

public MultiTouchEventDispatcher(java.awt.Component target)
Instantiates a new multi touch event dispatcher.

Parameters:
target - the target
Method Detail

cursorChanged

public void cursorChanged(MultiTouchCursorEvent evt)
Description copied from interface: IMultiTouchEventListener
Cursor is on the table, and moves, or rotates, or changes in some way.

Specified by:
cursorChanged in interface IMultiTouchEventListener
Parameters:
evt - the event

cursorClicked

public void cursorClicked(MultiTouchCursorEvent arg0)
Description copied from interface: IMultiTouchEventListener
Cursor clicked. The sensitivity of the clicking detection is the responsibility of the appropriate IMultiTouchInputService. Event order is cursorPressed, cursorReleased, cursorClicked.

Specified by:
cursorClicked in interface IMultiTouchEventListener
Parameters:
arg0 - the event

cursorPressed

public void cursorPressed(MultiTouchCursorEvent evt)
Description copied from interface: IMultiTouchEventListener
Cursor press arriving on the table.

Specified by:
cursorPressed in interface IMultiTouchEventListener
Parameters:
evt - the event

cursorReleased

public void cursorReleased(MultiTouchCursorEvent evt)
Description copied from interface: IMultiTouchEventListener
Cursor left the table.

Specified by:
cursorReleased in interface IMultiTouchEventListener
Parameters:
evt - the event

objectAdded

public void objectAdded(MultiTouchObjectEvent arg0)
Description copied from interface: IMultiTouchEventListener
Object/fiducial is added to the table.

Specified by:
objectAdded in interface IMultiTouchEventListener
Parameters:
arg0 - the event

objectChanged

public void objectChanged(MultiTouchObjectEvent arg0)
Description copied from interface: IMultiTouchEventListener
Object/fiducial is changed - position or rotation.

Specified by:
objectChanged in interface IMultiTouchEventListener
Parameters:
arg0 - the event

objectRemoved

public void objectRemoved(MultiTouchObjectEvent arg0)
Description copied from interface: IMultiTouchEventListener
Object/fiducial is removed from the table.

Specified by:
objectRemoved in interface IMultiTouchEventListener
Parameters:
arg0 - the event