com.aleax.gui.gesture
Class GestureInterface

java.lang.Object
  extended bycom.aleax.gui.gesture.GestureInterface

public final class GestureInterface
extends java.lang.Object

GestureInterface: Provides easy access to gesturing

Version:
1.0 28 Apr 2001
Author:
Yiannis Paschalidis

Field Summary
static boolean trainingMode
          Whether the training mode is active or not
 
Method Summary
static void addGestureListener(GestureListener listener)
           
static void beginStroke()
           
static void cancelStroke()
           
static void completeStroke()
           
static void continueStroke(java.awt.Point p)
           
static void disableGestures(java.awt.Component c)
           
static void enableGestures(java.awt.Component c)
           
static Gesture[] getGestures()
           
static boolean isEnabled()
           
static void readSettings(java.io.InputStream is)
          Reads the gesture system settings from the given inputStream
static void recalculateAll()
          Recalculate all the strokes when one or more filter settings have changed
static Gesture recogniseStroke(Stroke stroke)
           
static void removeGestureListener(GestureListener listener)
           
static void setEnabled(boolean enabled)
           
static void setGestures(Gesture[] newGestures)
           
static void writeSettings(java.io.OutputStream out)
          Writes the gesture system settings to the given outputStream
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

trainingMode

public static boolean trainingMode
Whether the training mode is active or not

Method Detail

readSettings

public static void readSettings(java.io.InputStream is)
                         throws java.lang.Exception
Reads the gesture system settings from the given inputStream

Throws:
java.lang.Exception

writeSettings

public static void writeSettings(java.io.OutputStream out)
                          throws java.lang.Exception
Writes the gesture system settings to the given outputStream

Throws:
java.lang.Exception

getGestures

public static Gesture[] getGestures()
Returns:
a copy of the gestures for use with external editing of gestures

setGestures

public static void setGestures(Gesture[] newGestures)

recalculateAll

public static void recalculateAll()
Recalculate all the strokes when one or more filter settings have changed


addGestureListener

public static void addGestureListener(GestureListener listener)

removeGestureListener

public static void removeGestureListener(GestureListener listener)

enableGestures

public static void enableGestures(java.awt.Component c)

disableGestures

public static void disableGestures(java.awt.Component c)

setEnabled

public static void setEnabled(boolean enabled)

isEnabled

public static boolean isEnabled()

cancelStroke

public static void cancelStroke()

beginStroke

public static void beginStroke()

continueStroke

public static void continueStroke(java.awt.Point p)

completeStroke

public static void completeStroke()

recogniseStroke

public static Gesture recogniseStroke(Stroke stroke)