PenProfile 2.x

com.livescribe.event
Class StrokeEvent

java.lang.Object
  extended by com.livescribe.event.Event
      extended by com.livescribe.event.PenletEvent
          extended by com.livescribe.event.PaperEvent
              extended by com.livescribe.event.StrokeEvent

public class StrokeEvent
extends PaperEvent

This event type provides support for stroke events.

Note that double- and single-taps will also appear as strokes.

Note also that the PE_XXX fields are not used with this event. Use the STROKE_xxx fields from this class.

Since:
2.3
See Also:
StrokeListener

Field Summary
static int STROKE_CREATED
          The stroke created event.
static int STROKE_FIRST_ID
          The first number in the range of ID's used for this event.
static int STROKE_LAST_ID
          The last number in the range of ID's used for this 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
StrokeEvent(int id, long time, PageInstance page, Region region)
          Creates a new stroke event using the specified parameters.
 
Method Summary
 
Methods inherited from class com.livescribe.event.PaperEvent
getCopy, 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

STROKE_FIRST_ID

public static final int STROKE_FIRST_ID
The first number in the range of ID's used for this event.

See Also:
Constant Field Values

STROKE_LAST_ID

public static final int STROKE_LAST_ID
The last number in the range of ID's used for this event.

See Also:
Constant Field Values

STROKE_CREATED

public static final int STROKE_CREATED
The stroke created event.

See Also:
Constant Field Values
Constructor Detail

StrokeEvent

public StrokeEvent(int id,
                   long time,
                   PageInstance page,
                   Region region)
Creates a new stroke event using the specified parameters.

Parameters:
id - the event ID
time - the event time
page - the page object
region - the region object

PenProfile 2.x

Copyright © 2010 Livescribe Inc. All Rights Reserved.
Confidential and subject to NDA.