src/gesture/GestureRecognizer.js
function (target, callback) {
                if (!target) {
                    throw new ArgumentError(
                        Logger.logMessage(Logger.LEVEL_SEVERE, "GestureRecognizer", "constructor", "missingTarget"));
                }

                /**
                 * Indicates the document element this gesture recognizer observes for UI events.
                 * @type {EventTarget}
                 * @readonly
                 */
                this.target = target;

                /**
                 * Indicates whether or not this gesture recognizer is enabled. When false, this gesture recognizer will
                 * ignore any events dispatched by its target.
                 * @type {Boolean}
                 * @default true
                 */
                this.enabled = true;

                // Documented with its property accessor below.
                this._state = WorldWind.POSSIBLE;

                // Intentionally not documented.
                this._nextState = null;

                // Documented with its property accessor below.
                this._clientX = 0;

                // Documented with its property accessor below.
                this._clientY = 0;

                // Intentionally not documented.
                this._clientStartX = 0;

                // Intentionally not documented.
                this._clientStartY = 0;

                // Documented with its property accessor below.
                this._translationX = 0;

                // Documented with its property accessor below.
                this._translationY = 0;

                // Intentionally not documented.
                this._translationWeight = 0.4;

                // Documented with its property accessor below.
                this._mouseButtonMask = 0;

                // Intentionally not documented.
                this._touches = [];

                // Intentionally not documented.
                this._touchCentroidShiftX = 0;

                // Intentionally not documented.
                this._touchCentroidShiftY = 0;

                // Documented with its property accessor below.
                this._gestureCallbacks = [];

                // Intentionally not documented.
                this._canRecognizeWith = [];

                // Intentionally not documented.
                this._requiresFailureOf = [];

                // Intentionally not documented.
                this._requiredToFailBy = [];

                // Add the optional gesture callback.
                if (callback) {
                    this._gestureCallbacks.push(callback);
                }

                // Intentionally not documented.
                this.listenerList = [];

                // Add this recognizer to the list of all recognizers.
                GestureRecognizer.allRecognizers.push(this);
            }
function (target, callback) {
                if (!target) {
                    throw new ArgumentError(
                        Logger.logMessage(Logger.LEVEL_SEVERE, "GestureRecognizer", "constructor", "missingTarget"));
                }

                /**
                 * Indicates the document element this gesture recognizer observes for UI events.
                 * @type {EventTarget}
                 * @readonly
                 */
                this.target = target;

                /**
                 * Indicates whether or not this gesture recognizer is enabled. When false, this gesture recognizer will
                 * ignore any events dispatched by its target.
                 * @type {Boolean}
                 * @default true
                 */
                this.enabled = true;

                // Documented with its property accessor below.
                this._state = WorldWind.POSSIBLE;

                // Intentionally not documented.
                this._nextState = null;

                // Documented with its property accessor below.
                this._clientX = 0;

                // Documented with its property accessor below.
                this._clientY = 0;

                // Intentionally not documented.
                this._clientStartX = 0;

                // Intentionally not documented.
                this._clientStartY = 0;

                // Documented with its property accessor below.
                this._translationX = 0;

                // Documented with its property accessor below.
                this._translationY = 0;

                // Intentionally not documented.
                this._translationWeight = 0.4;

                // Documented with its property accessor below.
                this._mouseButtonMask = 0;

                // Intentionally not documented.
                this._touches = [];

                // Intentionally not documented.
                this._touchCentroidShiftX = 0;

                // Intentionally not documented.
                this._touchCentroidShiftY = 0;

                // Documented with its property accessor below.
                this._gestureCallbacks = [];

                // Intentionally not documented.
                this._canRecognizeWith = [];

                // Intentionally not documented.
                this._requiresFailureOf = [];

                // Intentionally not documented.
                this._requiredToFailBy = [];

                // Add the optional gesture callback.
                if (callback) {
                    this._gestureCallbacks.push(callback);
                }

                // Intentionally not documented.
                this.listenerList = [];

                // Add this recognizer to the list of all recognizers.
                GestureRecognizer.allRecognizers.push(this);
            }
function ( target , callback ) { if ( ! target ) { throw new ArgumentError ( Logger . logMessage ( Logger . LEVEL_SEVERE , "GestureRecognizer" , "constructor" , "missingTarget" ) ) ; } /**
                 * Indicates the document element this gesture recognizer observes for UI events.
                 * @type {EventTarget}
                 * @readonly
                 */ this . target = target ; /**
                 * Indicates whether or not this gesture recognizer is enabled. When false, this gesture recognizer will
                 * ignore any events dispatched by its target.
                 * @type {Boolean}
                 * @default true
                 */ this . enabled = true ; // Documented with its property accessor below. this . _state = WorldWind . POSSIBLE ; // Intentionally not documented. this . _nextState = null ; // Documented with its property accessor below. this . _clientX = 0 ; // Documented with its property accessor below. this . _clientY = 0 ; // Intentionally not documented. this . _clientStartX = 0 ; // Intentionally not documented. this . _clientStartY = 0 ; // Documented with its property accessor below. this . _translationX = 0 ; // Documented with its property accessor below. this . _translationY = 0 ; // Intentionally not documented. this . _translationWeight = 0.4 ; // Documented with its property accessor below. this . _mouseButtonMask = 0 ; // Intentionally not documented. this . _touches = [ ] ; // Intentionally not documented. this . _touchCentroidShiftX = 0 ; // Intentionally not documented. this . _touchCentroidShiftY = 0 ; // Documented with its property accessor below. this . _gestureCallbacks = [ ] ; // Intentionally not documented. this . _canRecognizeWith = [ ] ; // Intentionally not documented. this . _requiresFailureOf = [ ] ; // Intentionally not documented. this . _requiredToFailBy = [ ] ; // Add the optional gesture callback. if ( callback ) { this . _gestureCallbacks . push ( callback ) ; } // Intentionally not documented. this . listenerList = [ ] ; // Add this recognizer to the list of all recognizers. GestureRecognizer . allRecognizers . push ( this ) ; }
Constructs a base gesture recognizer. This is an abstract base class and not intended to be instantiated
directly.
@alias GestureRecognizer
@constructor
@classdesc Gesture recognizers translate user input event streams into higher level actions. A gesture
recognizer is associated with an event target, which dispatches mouse and keyboard events to the gesture
recognizer. When a gesture recognizer has received enough information from the event stream to interpret the
action, it calls its callback functions. Callback functions may be specified at construction or added to the
[gestureCallbacks]{@link GestureRecognizer#gestureCallbacks} list after construction.
@param {EventTarget} target The document element this gesture recognizer observes for mouse and touch events.
@param {Function} callback An optional function to call when this gesture is recognized. If non-null, the
function is called when this gesture is recognized, and is passed a single argument: this gesture recognizer,
e.g., <code>gestureCallback(recognizer)</code>.
@throws {ArgumentError} If the specified target is null or undefined.
 TODO: evaluate target usage
Constructs a base gesture recognizer . This is an abstract base class and not intended to be instantiated directly .