PenProfile 2.x

com.livescribe.event
Interface PenTipListener


public interface PenTipListener

This interface must be implemented by any class that wishes to receive pen tip events from the system. These include:

  1. Pen up,
  2. Pen down,
  3. Single tap, and
  4. Double tap.


Method Summary
 void doubleTap(long time, int x, int y)
          Called when the user performs a double tap.
 void penDown(long time, Region region, PageInstance page)
          Called when the user presses the pen on the page.
 void penUp(long time, Region region, PageInstance page)
          Called when the user lifts the pen.
 void singleTap(long time, int x, int y)
          Called when the user performs a single tap.
 

Method Detail

penUp

void penUp(long time,
           Region region,
           PageInstance page)
Called when the user lifts the pen.

Parameters:
time - the system time of the event
region - the region in which the pen was lifted
page - the page where the event occurred

penDown

void penDown(long time,
             Region region,
             PageInstance page)
Called when the user presses the pen on the page.

Parameters:
time - the system time of the event
region - the region in which the pen was put down
page - the page where the event occurred

singleTap

void singleTap(long time,
               int x,
               int y)
Called when the user performs a single tap. The X-coordinate increases to the right and the Y-coordinate increases going down.

Note that single-taps will also appear as strokes.

Parameters:
time - the system time of the event
x - the X-coordinate of the tap
y - the Y-coordinate of the tap

doubleTap

void doubleTap(long time,
               int x,
               int y)
Called when the user performs a double tap. A double tap occurs when the user taps twice within a certain time and within a certain bounds on the page. The X-coordinate increases to the right and the Y-coordinate increases going down. The X-coordinate and Y-coordinate parameters indicate the point of the second tap and not the median of the two taps.

Note that double-taps will also appear as strokes.

Parameters:
time - the system time of the event
x - the X-coordinate of the double tap
y - the Y-coordinate of the double tap

PenProfile 2.x

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