source: trunk/src/org/expeditee/gio/gesture/GestureAction.java@ 1459

Last change on this file since 1459 was 1155, checked in by bln4, 6 years ago

org.apollo.ApolloGestureActions ->
org.expeditee.gio.InputManager ->
org.expeditee.gio.gesture.GestureAction ->
org.expeditee.gio.gesture.GestureListener ->
org.expeditee.gio.gesture.StandardGestureActions ->

Gestures can now optionally have a pre and post action.

File size: 463 bytes
Line 
1package org.expeditee.gio.gesture;
2
3public abstract class GestureAction {
4
5 public abstract void exec(final Gesture gesture);
6
7 /**
8 * Base implementation does nothing. Subclasses overwrite if they wish to prepare.
9 * @param gesture
10 */
11 public void prepare(final Gesture gesture) {
12 }
13
14 /**
15 * Base implementation does nothing. Subclasses overwrite if they wish to finalise.
16 * @param gesture
17 */
18 public void finalise(final Gesture gesture) {
19 }
20}
Note: See TracBrowser for help on using the repository browser.