|
JTablet 1.2.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcello.jtablet.event.TabletFunneler
public abstract class TabletFunneler
A convenience class that implements TabletListener as a funnel to a single abstract method you can implement
to handle all events. Override and implement the handleEvent(TabletEvent) method to receive all events in
one place.
Example:
TabletListenerlistener = newTabletFunneler() { protected voidhandleEvent(TabletEventev) { System.out.println(ev.toString()); } }
| Constructor Summary | |
|---|---|
TabletFunneler()
|
|
| Method Summary | |
|---|---|
void |
cursorDragged(TabletEvent ev)
Invoked when the cursor is dragged (pressed+moved). |
void |
cursorEntered(TabletEvent ev)
Invoked either when the cursor enters the given component, either spatially or through proximity. |
void |
cursorExited(TabletEvent ev)
Invoked either when the cursor exits the given component, either spatially or through proximity. |
void |
cursorGestured(TabletEvent ev)
Invoked when the user executes a gesture. |
void |
cursorMoved(TabletEvent ev)
Invoked when the cursor is moved. |
void |
cursorPressed(TabletEvent ev)
Invoked when a button is pressed. |
void |
cursorReleased(TabletEvent ev)
Invoked when a button is released. |
void |
cursorScrolled(TabletEvent ev)
Invoked when the user scrolls with a wheel or multi-touch scroll device. |
protected abstract void |
handleEvent(TabletEvent ev)
Override this method to receive all possible TabletEvents that would go to this listener. |
void |
levelChanged(TabletEvent ev)
Invoked when a level has changed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TabletFunneler()
| Method Detail |
|---|
public void cursorDragged(TabletEvent ev)
TabletListener
cursorDragged in interface TabletListenerev - the event details objectMouseMotionListener.mouseDragged(MouseEvent)public void cursorEntered(TabletEvent ev)
TabletListener
cursorEntered in interface TabletListenerev - the event details objectMouseListener.mouseEntered(MouseEvent)public void cursorExited(TabletEvent ev)
TabletListener
cursorExited in interface TabletListenerev - the event details objectMouseListener.mouseExited(MouseEvent)public void cursorGestured(TabletEvent ev)
TabletListener
cursorGestured in interface TabletListenerev - the event details objectTabletEvent.Type.SWIPED,
TabletEvent.Type.ROTATED,
TabletEvent.Type.ZOOMEDpublic void cursorMoved(TabletEvent ev)
TabletListener
cursorMoved in interface TabletListenerev - the event details objectMouseMotionListener.mouseMoved(MouseEvent)public void cursorPressed(TabletEvent ev)
TabletListener
cursorPressed in interface TabletListenerev - the event details objectMouseListener.mousePressed(MouseEvent)public void cursorReleased(TabletEvent ev)
TabletListener
cursorReleased in interface TabletListenerev - the event details objectMouseListener.mouseReleased(MouseEvent)public void cursorScrolled(TabletEvent ev)
TabletListener
cursorScrolled in interface TabletListenerev - the event details objectTabletEvent.Type.SCROLLED,
TabletEvent.getScrollX(),
TabletEvent.getScrollY()public void levelChanged(TabletEvent ev)
TabletListener
levelChanged in interface TabletListenerev - the event details objectprotected abstract void handleEvent(TabletEvent ev)
TabletEvents that would go to this listener.
ev -
|
JTablet 1.2.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||