|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CoordinateListener
This interface must be implemented by any class that wishes to receive coordinate events from the system. These are the raw position events. Coordinate events include:
Coordinate| Method Summary | |
|---|---|
void |
coordinate(long time,
Coordinate coord)
This is called whenever a new coordinate has been decoded by the system. |
void |
coordinateFailed(long time)
This is called if a coordinate failed to decode. |
void |
hover(long time,
Coordinate coord)
This is called when a valid coordinate is detected when the pen tip is near, but not in contact with, the paper. |
void |
hoverAway(long time)
This is called when the pen tip moves beyond the range of it ability to decode coordinates when hovering. |
void |
whitePaper(long time)
This is called when the pen sees white, or non dotted, paper. |
| Method Detail |
|---|
void coordinate(long time,
Coordinate coord)
time - the event timecoord - the coordinatecoordinateFailed(long),
SystemConfig.getSuccessfulCoordinateCount()void coordinateFailed(long time)
time - the event timecoordinate(long, Coordinate),
SystemConfig.getFailedCoordinateCount()
void hover(long time,
Coordinate coord)
time - the event timecoord - the coordinatehoverAway(long),
SystemConfig.setHoverModeEnabled(boolean)void hoverAway(long time)
Note that unlike the other methods in this interface, this one is only called once after the pen has been hovering or has seen some coordinates.
time - the event timehover(long, Coordinate),
SystemConfig.setHoverModeEnabled(boolean)void whitePaper(long time)
time - the event time
|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||