Package com.sparshui.gestures

Examples of com.sparshui.gestures.Gesture


    _gestureIDs = gestureIDs;
    _gestures = new ArrayList();
    _touchPoints = new ArrayList();
    _clientProtocol = clientProtocol;
    for (int i = 0; i < _gestureIDs.size(); i++) {
      Gesture gesture = GestureFactory.createGesture(_gestureIDs.get(i));
      if (gesture != null)
        _gestures.add(gesture);
    }
  }
View Full Code Here


     * TouchPoint touchPoint = (TouchPoint) _touchPoints.get(i); synchronized
     * (touchPoint) { TouchPoint clonedPoint = (TouchPoint) touchPoint.clone();
     * clonedPoints.add(clonedPoint); } }
     */
    for (int i = 0; i < _gestures.size(); i++) {
      Gesture gesture = (Gesture) _gestures.get(i);
      // System.out.println(_gestures.size());
      // System.out.println("Gesture allowed: " + gesture.getName());
      events.addAll(gesture.processChange(clonedPoints == null ? _touchPoints
          : clonedPoints, changedPoint));
      // System.out.println("Got some events - size: " + events.size());
    }

    // moved to after processing.
View Full Code Here

TOP

Related Classes of com.sparshui.gestures.Gesture

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.