TouchOptions.java :  » Graphics-3D-2D-OpenGL » andengine » org » anddev » andengine » engine » options » Android Open Source

Android Open Source » Graphics 3D 2D OpenGL » andengine 
andengine » org » anddev » andengine » engine » options » TouchOptions.java
package org.anddev.andengine.engine.options;

/**
 * @author Nicolas Gramlich
 * @since 16:03:09 - 08.09.2010
 */
public class TouchOptions {
  // ===========================================================
  // Constants
  // ===========================================================

  // ===========================================================
  // Fields
  // ===========================================================

  private boolean mRunOnUpdateThread;

  // ===========================================================
  // Constructors
  // ===========================================================

  // ===========================================================
  // Getter & Setter
  // ===========================================================

  public TouchOptions enableRunOnUpdateThread() {
    return this.setRunOnUpdateThread(true);
  }

  public TouchOptions disableRunOnUpdateThread() {
    return this.setRunOnUpdateThread(false);
  }

  public TouchOptions setRunOnUpdateThread(final boolean pRunOnUpdateThread) {
    this.mRunOnUpdateThread = pRunOnUpdateThread;
    return this;
  }

  /**
   * <u><b>Default:</b></u> <code>true</code>
   */
  public boolean isRunOnUpdateThread() {
    return this.mRunOnUpdateThread;
  }

  // ===========================================================
  // Methods for/from SuperClass/Interfaces
  // ===========================================================

  // ===========================================================
  // Methods
  // ===========================================================

  // ===========================================================
  // Inner and Anonymous Classes
  // ===========================================================
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.