PenProfile 2.x

com.livescribe.event
Class CoordinateEvent

java.lang.Object
  extended by com.livescribe.event.Event
      extended by com.livescribe.event.PenletEvent
          extended by com.livescribe.event.CoordinateEvent

public class CoordinateEvent
extends PenletEvent

Since:
2.4

Field Summary
 Coordinate coordinate
          The associated coordinate value.
static int COORDINATE_COORDINATE
          The Normal pen down coordinate event.
static int COORDINATE_FAILED
          The Pen down decode failure event.
static int COORDINATE_HOVER
          The Hover event.
static int COORDINATE_HOVER_AWAY
          The Hover away event.
static int COORDINATE_WHITE_PAPER
          The Pen sees white paper event.
 
Fields inherited from class com.livescribe.event.PenletEvent
size, time
 
Fields inherited from class com.livescribe.event.Event
consumed, eventId
 
Constructor Summary
CoordinateEvent(int id, long time, int size, int x, int y)
          Creates a new coordinate event having the specified parameters.
 
Method Summary
 String toString()
          Returns a string representation of this object.
 
Methods inherited from class com.livescribe.event.PenletEvent
getTime, toDate
 
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

COORDINATE_HOVER

public static final int COORDINATE_HOVER
The Hover event.

See Also:
Constant Field Values

COORDINATE_HOVER_AWAY

public static final int COORDINATE_HOVER_AWAY
The Hover away event.

See Also:
Constant Field Values

COORDINATE_COORDINATE

public static final int COORDINATE_COORDINATE
The Normal pen down coordinate event.

See Also:
Constant Field Values

COORDINATE_FAILED

public static final int COORDINATE_FAILED
The Pen down decode failure event.

See Also:
Constant Field Values

COORDINATE_WHITE_PAPER

public static final int COORDINATE_WHITE_PAPER
The Pen sees white paper event.

See Also:
Constant Field Values

coordinate

public Coordinate coordinate
The associated coordinate value.

Constructor Detail

CoordinateEvent

public CoordinateEvent(int id,
                       long time,
                       int size,
                       int x,
                       int y)
Creates a new coordinate event having the specified parameters.

Parameters:
id - the event ID, one of the COORDINATE_XXX constants
time - the event time
size - the size
x - the X-coordinate
y - the Y-coordinate
Method Detail

toString

public String toString()
Returns a string representation of this object.

Overrides:
toString in class PenletEvent
Returns:
a string representation of this object.

PenProfile 2.x

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