Android Open Source - GestureMechanism Wrap Motion Event






From Project

Back to project page GestureMechanism.

License

The source code is released under:

GNU Lesser General Public License

If you think the Android project GestureMechanism listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.in.mobile.gesture.ad;
/*from  w ww .  j a  v  a  2s . co m*/
import android.view.MotionEvent;

public class WrapMotionEvent {
  protected MotionEvent event;

  protected WrapMotionEvent(MotionEvent event) {
    this.event = event;
  }

  static public WrapMotionEvent wrap(MotionEvent event) {
    return new WrapMotionEvent(event);
  }

  public int getAction() {
    return event.getAction();
  }

  public float getX() {
    return event.getX();
  }

  public float getX(int pointerIndex) {
    return event.getX(pointerIndex);
  }

  public float getY() {
    return event.getY();
  }

  public float getY(int pointerIndex) {
    return event.getY(pointerIndex);
  }

  public int getPointerCount() {
    return event.getPointerCount();
  }

  public int getPointerId(int pointerIndex) {
    return event.getPointerId(pointerIndex);
  }
}




Java Source Code List

com.in.mobile.common.utilities.Commons.java
com.in.mobile.database.adcontainer.AdDescriptor.java
com.in.mobile.database.adcontainer.DatabaseCommons.java
com.in.mobile.database.adcontainer.DatabaseHandler.java
com.in.mobile.database.adcontainer.DatabaseHelper.java
com.in.mobile.database.adcontainer.DatabaseManager.java
com.in.mobile.gesture.ad.AdContentLoader.java
com.in.mobile.gesture.ad.AdMechanism.java
com.in.mobile.gesture.ad.DynamicAdView.java
com.in.mobile.gesture.ad.GCMIntentService.java
com.in.mobile.gesture.ad.WrapMotionEvent.java
com.in.mobile.gesture.ad.contentprovider.AdContentProvider.java
com.in.mobile.manager.adfile.FileDownloader.java
com.in.mobile.notification.handler.ServerUtilities.java
com.in.mobile.pushnotification.gcm.ApiKeyInitializer.java
com.in.mobile.pushnotification.gcm.BaseServlet.java
com.in.mobile.pushnotification.gcm.Datastore.java
com.in.mobile.pushnotification.gcm.HomeServlet.java
com.in.mobile.pushnotification.gcm.RegisterServlet.java
com.in.mobile.pushnotification.gcm.SendAllMessagesServlet.java
com.in.mobile.pushnotification.gcm.UnregisterServlet.java