Packagepq.multitouch.events
Classpublic class GestureEvent
Inheritance GestureEvent InheritanceBaseGestureEvent

The GestureEvent class represents gesture events.



Public Properties
 PropertyDefined by
   angle : Number
[read-only]Indicates the angle of dual-touch blobs in gesture event, in radian.
GestureEvent
   clickCount : int
[read-only]Indicates the count of touch-click action for some gestures related with click, like SingleClickGesture, etc.
GestureEvent
   touchArea : Number
[read-only]Indicates the area of multi-touch blobs that are related with gesture event.
GestureEvent
   touchDist : Number
[read-only]Indicates the distance of dual-touch blobs that are related with gesture event.
GestureEvent
Public Methods
 MethodDefined by
  
GestureEvent(type:String, screenX:Number, screenY:Number, clickcount:int=0,
touchDist:Number=0, angle:Number=0, touchArea:Number=0):void
Creates an GestureEvent object that contains information about gestures.
GestureEvent
  
clone():Event
Creates a copy of the GestureEvent object and sets the value of each property to match that of the original.
GestureEvent
  
toString():String
Returns a string that contains properties of the GestureEvent object.
GestureEvent
Public Constants
 ConstantDefined by
   SINGLE_DOWN : String = "SINGLE_DOWN"
[static]Defines the value of the type property of a SINGLE_DOWN event object.
GestureEvent
   SINGLE_MOVE : String = "SINGLE_MOVE"
[static]Defines the value of the type property of a SINGLE_MOVE event object.
GestureEvent
   SINGLE_UP : String = "SINGLE_UP"
[static]Defines the value of the type property of a SINGLE_UP event object.
GestureEvent
  SINGLE_CLICK : String = "SINGLE_CLICK"
[static]Defines the value of the type property of a SINGLE_CLICK event object.
GestureEvent
  SINGLE_TOUCH : String = "SINGLE_TOUCH"
[static]Defines the value of the type property of a SINGLE_TOUCH event object.
GestureEvent
  SECOND_DOWN : String = "SECOND_DOWN"
[static]Defines the value of the type property of a SECOND_DOWN event object.
GestureEvent
  SECOND_UP : String = "SECOND_UP"
[static]Defines the value of the type property of a SECOND_UP event object.
GestureEvent
  SECOND_CLICK : String = "SECOND_CLICK"
[static]Defines the value of the type property of a SECOND_CLICK event object.
GestureEvent
  DUAL_DOWN : String = "DUAL_DOWN"
[static]Defines the value of the type property of a DUAL_DOWN event object.
GestureEvent
  DUAL_UP : String = "DUAL_UP"
[static]Defines the value of the type property of a DUAL_UP event object.
GestureEvent
  DUAL_CLICK : String = "DUAL_CLICK"
[static]Defines the value of the type property of a DUAL_CLICK event object.
GestureEvent
  DUAL_MOVE : String = "DUAL_MOVE"
[static]Defines the value of the type property of a DUAL_MOVE event object.
GestureEvent
  ONE_PAUSE_ONE_MOVE : String = "ONE_PAUSE_ONE_MOVE"
[static]Defines the value of the type property of a ONE_PAUSE_ONE_MOVE event object.
GestureEvent
  MULTI_DOWN : String = "MULTI_DOWN"
[static]Defines the value of the type property of a MULTI_DOWN event object.
GestureEvent
  MULTI_MOVE : String = "MULTI_MOVE"
[static]Defines the value of the type property of a MULTI_MOVE event object.
GestureEvent
  MULTI_UP : String = "MULTI_UP"
[static]Defines the value of the type property of a MULTI_UP event object.
GestureEvent
Property detail
angleproperty
angle:Number [read-only]

Indicates the angle of dual-touch blobs in gesture event, in radian.

Implementation

public function get angle():Number

clickCount property
clickCount:int [read-only]

Indicates the count of touch-click action for some gestures related with click, like SingleClickGesture, etc.

Implementation

public function get clickCount():int

touchArea property
touchArea:Number [read-only]

Indicates the area of multi-touch blobs that are related with gesture event.

Implementation

public function get touchArea():Number

touchDist property
touchDist:Number [read-only]

Indicates the distance of dual-touch blobs that are related with gesture event.

Implementation

public function get touchDist():Number

Method detail

clone

()method
public override function clone():Event

Creates a copy of the GestureEvent object and sets the value of each property to match that of the original.

Returns

Event— A new GestureEvent object with property values that match those of the original.
toString ()method
public override function toString():String

Returns a string that contains properties of the GestureEvent object. The string is in the following format: [GestureEvent frameID=value type=value x=value ... eventPhase=value]

Returns

String properties string of the GestureEvent object.
Constant detail
SINGLE_DOWNConstant
public static const SINGLE_DOWN:String

Defines the value of the type property of a SINGLE_DOWN event object.

SINGLE_MOVEConstant
public static const SINGLE_MOVE:String

Defines the value of the type property of a SINGLE_MOVE event object.

SINGLE_UPConstant
public static const SINGLE_UP:String

Defines the value of the type property of a SINGLE_UP event object.

SINGLE_CLICKConstant
public static const SINGLE_CLICK:String

Defines the value of the type property of a SINGLE_CLICK event object.

SINGLE_TOUCHConstant
public static const SINGLE_TOUCH:String

Defines the value of the type property of a SINGLE_TOUCH event object.

SECOND_DOWNConstant
public static const SECOND_DOWN:String

Defines the value of the type property of a SECOND_DOWN event object.

SECOND_UPConstant
public static const SECOND_UP:String

Defines the value of the type property of a SECOND_UP event object.

SECOND_CLICKConstant
public static const SECOND_CLICK:String

Defines the value of the type property of a SECOND_CLICK event object.

DUAL_DOWNConstant
public static const DUAL_DOWN:String

Defines the value of the type property of a DUAL_DOWN event object.

DUAL_UPConstant
public static const DUAL_UP:String

Defines the value of the type property of a DUAL_UP event object.

DUAL_CLICKConstant
public static const DUAL_CLICK:String

Defines the value of the type property of a DUAL_CLICK event object.

DUAL_MOVEConstant
public static const DUAL_MOVE:String

Defines the value of the type property of a DUAL_MOVE event object.

ONE_PAUSE_ONE_MOVEConstant
public static const ONE_PAUSE_ONE_MOVE:String

Defines the value of the type property of a ONE_PAUSE_ONE_MOVE event object.

MULTI_DOWNConstant
public static const MULTI_DOWN:String

Defines the value of the type property of a MULTI_DOWN event object.

MULTI_MOVEConstant
public static const MULTI_MOVE:String

Defines the value of the type property of a MULTI_MOVE event object.

MULTI_UPConstant
public static const MULTI_UP:String

Defines the value of the type property of a MULTI_UP event object.