1 /*
2 * @(#)$Id: WacomReaderEventListener.java 689 2009-07-22 00:10:27Z bsigner $
3 *
4 * Author : Michele Croci, mcroci@gmail.com
5 *
6 * Purpose : Tablet reader event listener.
7 *
8 * -----------------------------------------------------------------------
9 *
10 * Revision Information:
11 *
12 * Date Who Reason
13 *
14 * Nov 15, 2007 crocimi Initial Release
15 *
16 *
17 * -----------------------------------------------------------------------
18 *
19 * Copyright 1999-2009 ETH Zurich. All Rights Reserved.
20 *
21 * This software is the proprietary information of ETH Zurich.
22 * Use is subject to license terms.
23 *
24 */
25
26
27 package org.ximtec.igesture.io.wacomclient;
28
29 import org.sigtec.input.AbstractInputDeviceEventListener;
30 import org.sigtec.input.InputDevice;
31 import org.sigtec.input.InputDeviceEvent;
32 import org.sigtec.input.InputDeviceEventListener;
33
34
35 /**
36 * Tablet reader event listener.
37 *
38 * @version 1.0, Nov 2007
39 * @author Michele Croci, mcroci@gmail.com
40 */
41
42 public class WacomReaderEventListener extends AbstractInputDeviceEventListener
43 implements InputDeviceEventListener {
44
45 public void inputDeviceEvent(InputDevice arg0, InputDeviceEvent event) {
46 final WacomReaderEvent tabletEvent = (WacomReaderEvent)event;
47
48 if (tabletEvent.getTimestampedLocation() != null) {
49 fireLocationEvent(tabletEvent.getTimestampedLocation());
50 }
51
52 }
53
54 }