|
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
com.livescribe.event.PaperEvent
com.livescribe.event.DocumentEvent
public class DocumentEvent
This event type provides support for document events.
Note that the PE_XXX fields are not used with this
event. Use the DOCUMENT_xxx fields from this class.
Apologies for the naming inconsistency.
PaperListener| Field Summary | |
|---|---|
static int |
DOCUMENT_FIRST_ID
The first number in the range of ID's used for this event. |
static int |
DOCUMENT_LAST_ID
The last number in the range of ID's used for this event. |
static int |
DOCUMENT_NEW_DOCUMENT
The new document event. |
static int |
DOCUMENT_NEW_PAGE
The new page event. |
| Fields inherited from class com.livescribe.event.PaperEvent |
|---|
areaId, pageInstance, PE_AREAENTER, PE_AREAEXIT, PE_COORDINATE, PE_NEWDOCUMENT, PE_NEWPAGE, PE_PENDOWN, PE_PENUP, PE_STROKE |
| Fields inherited from class com.livescribe.event.PenletEvent |
|---|
size, time |
| Fields inherited from class com.livescribe.event.Event |
|---|
consumed, eventId |
| Constructor Summary | |
|---|---|
DocumentEvent(int id,
long time,
PageInstance page)
Creates a new document event using the specified parameters. |
|
| Method Summary | |
|---|---|
int |
getCopy()
Gets the copy number. |
Document |
getDocument()
Gets the document object. |
| Methods inherited from class com.livescribe.event.PaperEvent |
|---|
getPage, getPageInstance, getRegion, toDate, toString |
| Methods inherited from class com.livescribe.event.PenletEvent |
|---|
getTime |
| 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 static final int DOCUMENT_FIRST_ID
public static final int DOCUMENT_LAST_ID
public static final int DOCUMENT_NEW_PAGE
public static final int DOCUMENT_NEW_DOCUMENT
| Constructor Detail |
|---|
public DocumentEvent(int id,
long time,
PageInstance page)
id - the event IDtime - the event timepage - the page object| Method Detail |
|---|
public Document getDocument()
null for the
new page event.
This is a convenience method that calls
PageInstance.getDocument() on the object returned by
PaperEvent.getPageInstance().
public int getCopy()
This is a convenience method that calls
PageInstance.getCopy() on the object returned by
PaperEvent.getPageInstance().
getCopy in class PaperEventPageInstance.getCopy()
|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||