|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.livescribe.event.Event
com.livescribe.event.PenletEvent
public class PenletEvent
This event type provides support for timestamp and size data. This class is not for use by 3rd party developers.
| Field Summary | |
|---|---|
int |
size
The associated size information, if relevant. |
long |
time
The event time. |
| Fields inherited from class com.livescribe.event.Event |
|---|
consumed, eventId |
| Constructor Summary | |
|---|---|
protected |
PenletEvent(int[] eventArray)
Creates a new penlet event. |
|
PenletEvent(long time,
int size,
int id)
Deprecated. |
| Method Summary | |
|---|---|
long |
getTime()
Gets the event time. |
protected String |
toDate()
Returns the event's timestamp. |
String |
toString()
Returns a string representation of this event. |
| Methods inherited from class com.livescribe.event.Event |
|---|
consume, getId, isConsumed |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final long time
public final int size
| Constructor Detail |
|---|
protected PenletEvent(int[] eventArray)
The array is a list of integers and its format is as follows.
If the array contains less than four elements then only the ID is used from index zero and the time and size are set to zero. In other words, the array must contain at least one element.
eventArray - the event data, an integer array
public PenletEvent(long time,
int size,
int id)
time - the timesize - the sizeid - the event ID| Method Detail |
|---|
public long getTime()
public String toString()
toString in class Objectprotected String toDate()
|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||