1 /*
2 * @(#)$Id: WacomReaderEvent.java 689 2009-07-22 00:10:27Z bsigner $
3 *
4 * Author : Michele Croci, mcroci@gmail.com
5 *
6 * Purpose : Tablet reader event.
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.ink.input.TimestampedLocation;
30 import org.sigtec.input.InputDeviceEvent;
31
32
33 /**
34 * Tablet reader event.
35 *
36 * @version 1.0, Nov 2007
37 * @author Michele Croci, mcroci@gmail.com
38 */
39 public class WacomReaderEvent implements InputDeviceEvent {
40
41 private TimestampedLocation location;
42
43
44 /**
45 * Constructs a new tablet reader event.
46 *
47 * @param location the position captured by the tablet.
48 */
49 public WacomReaderEvent(TimestampedLocation location) {
50 this.location = location;
51 }
52
53
54 /**
55 * Returns the time when the event occurred.
56 *
57 * @return the time when the event occurred.
58 */
59 public long getTimestamp() {
60 return location.getTimestamp();
61 } // getTimestamp
62
63
64 /**
65 * Returns the timestamped location.
66 *
67 * @return the timestamped location.
68 */
69 public TimestampedLocation getTimestampedLocation() {
70 return location;
71 } // getTimestampedLocation
72
73
74 /*
75 * TODO: return others location type,
76 * provide other constructors
77 */
78
79 }