JTablet 1.2.0 API

cello.jtablet.event
Interface TabletListener

All Known Implementing Classes:
TabletAdapter, TabletFunneler

public interface TabletListener

The listener interface for receiving tablet events on a component (similar to MouseListener and MouseMotionListener).

You can add listeners using TabletManager.addTabletListener(Component, TabletListener) and TabletManager.addScreenTabletListener(TabletListener).

Author:
Marcello
See Also:
TabletManager, TabletAdapter, TabletFunneler

Method Summary
 void cursorDragged(TabletEvent event)
          Invoked when the cursor is dragged (pressed+moved).
 void cursorEntered(TabletEvent event)
          Invoked either when the cursor enters the given component, either spatially or through proximity.
 void cursorExited(TabletEvent event)
          Invoked either when the cursor exits the given component, either spatially or through proximity.
 void cursorGestured(TabletEvent event)
          Invoked when the user executes a gesture.
 void cursorMoved(TabletEvent event)
          Invoked when the cursor is moved.
 void cursorPressed(TabletEvent event)
          Invoked when a button is pressed.
 void cursorReleased(TabletEvent event)
          Invoked when a button is released.
 void cursorScrolled(TabletEvent event)
          Invoked when the user scrolls with a wheel or multi-touch scroll device.
 void levelChanged(TabletEvent event)
          Invoked when a level has changed.
 

Method Detail

cursorPressed

void cursorPressed(TabletEvent event)
Invoked when a button is pressed.

Parameters:
event - the event details object
See Also:
MouseListener.mousePressed(MouseEvent)

cursorReleased

void cursorReleased(TabletEvent event)
Invoked when a button is released.

Parameters:
event - the event details object
See Also:
MouseListener.mouseReleased(MouseEvent)

cursorEntered

void cursorEntered(TabletEvent event)
Invoked either when the cursor enters the given component, either spatially or through proximity.

Parameters:
event - the event details object
See Also:
MouseListener.mouseEntered(MouseEvent)

cursorExited

void cursorExited(TabletEvent event)
Invoked either when the cursor exits the given component, either spatially or through proximity.

Parameters:
event - the event details object
See Also:
MouseListener.mouseExited(MouseEvent)

cursorMoved

void cursorMoved(TabletEvent event)
Invoked when the cursor is moved.

Parameters:
event - the event details object
See Also:
MouseMotionListener.mouseMoved(MouseEvent)

cursorDragged

void cursorDragged(TabletEvent event)
Invoked when the cursor is dragged (pressed+moved).

Parameters:
event - the event details object
See Also:
MouseMotionListener.mouseDragged(MouseEvent)

cursorScrolled

void cursorScrolled(TabletEvent event)
Invoked when the user scrolls with a wheel or multi-touch scroll device.

Parameters:
event - the event details object
See Also:
TabletEvent.Type.SCROLLED, TabletEvent.getScrollX(), TabletEvent.getScrollY()

cursorGestured

void cursorGestured(TabletEvent event)
Invoked when the user executes a gesture.

Parameters:
event - the event details object
See Also:
TabletEvent.Type.SWIPED, TabletEvent.Type.ROTATED, TabletEvent.Type.ZOOMED

levelChanged

void levelChanged(TabletEvent event)
Invoked when a level has changed. This will occur if some level (pressure, side pressure, tilt, rotation) changes without the actual position changing.

Parameters:
event - the event details object

JTablet 1.2.0 API