Packagepq.multitouch.events
Classpublic class RotateEvent
Inheritance RotateEvent InheritanceBaseGestureEvent

The RotateEvent class represents ROTATE event.



Public Properties
 PropertyDefined by
   totalAngle : Number
[read-only]Indicates the total rotate angle since RotateGesture begin.
RotateEvent
   deltaAngle : Number
[read-only]Indicates the change angle relative to the angle in last frame.
RotateEvent
   isClockWise : Boolean
[read-only]Indicates whether the rotate action is clockwise or counter-clockwise.
RotateEvent
Public Methods
 MethodDefined by
  
RotateEvent(type:String, centerX:Number, centerY:Number, totalAngle:Number=0,
deltaAngle:Number=0, isClockWise:Number=0):void
Creates an RotateEvent object that contains information about RotateGesture.
RotateEvent
  
clone():Event
Creates a copy of the RotateEvent object and sets the value of each property to match that of the original.
RotateEvent
  
toString():String
Returns a string that contains properties of the RotateEvent object.
RotateEvent
Public Constants
 ConstantDefined by
   ROTATE : String = "ROTATE"
[static]Defines the value of the type property of a ROTATE event object.
RotateEvent
Property detail
totalAngle property
totalAngle:Number [read-only]

Indicates the total rotate angle since RotateGesture begin.

Implementation

public function get totalAngle():Number

deltaAngle property
deltaAngle:Number [read-only]

Indicates the change angle relative to the angle in last frame.

Implementation

public function get deltaAngle():Number

isClockWise property
isClockWise:Number [read-only]

Indicates whether the rotate action is clockwise or counter-clockwise.

Implementation

public function get isClockWise():Number

Method detail

clone

()method
public override function clone():Event

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

Returns

Event— A new RotateEvent 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 RotateEvent object. The string is in the following format: [RotateEvent frameID=value type=value x=value ... eventPhase=value]

Returns

String properties string of the RotateEvent object.
Constant detail
ROTATEConstant
public static const ROTATE:String

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