public abstract class PenEvent extends java.lang.Object implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
Pen |
pen |
static long |
serialVersionUID |
protected long |
time |
| Modifier and Type | Method and Description |
|---|---|
PenDevice |
getDevice() |
byte |
getDeviceId()
Returns the id of the
PenDevice which generated this event. |
long |
getDeviceTime()
Returns the timestamp in milliseconds of when this event ocurred in the
PenDevice. |
long |
getTime()
Returns the time in milliseconds of when this event was scheduled by the
Pen. |
java.lang.String |
toString() |
public static final long serialVersionUID
protected long time
public long getTime()
Pen.public byte getDeviceId()
PenDevice which generated this event.getDevice(),
PenManager.getDevice(byte)public PenDevice getDevice()
java.lang.IllegalStateException - if the pen is null. pen is null after deserialization.public long getDeviceTime()
PenDevice. The value returned was measured since some fixed but arbitrary time imposed by the PenDevice.getDeviceId(),
getTime()public java.lang.String toString()
toString in class java.lang.Object