Packagecom.kapit.diagram.actions
Classpublic class ComplexAction
InheritanceComplexAction Inheritance Action
ImplementsIUIController
SubclassesDragLinkAction, LinkAction, TextEditAction, TransformAction



Public Properties
 PropertyDefined by
  activated : Boolean
[read-only] Indicates whether this ComplexAction is activated or not.
ComplexAction
 Inheritedid : String
ID of this action.
Action
 Inheritedmanager : ActionsManager
The ActionsManager instance controlling this action (cursors, properties...).
Action
 Inheritedsource : IDiagramElement
The DiagramElement instance that has triggered this action.
Action
 Inheritedview : DiagramView
The DiagramView instance where this action has been triggered.
Action
Protected Properties
 PropertyDefined by
  _activated : Boolean = false
Activation status of this complex action.
ComplexAction
  _cursorid : int = -1
Cursor ID to be used by this complex action.
ComplexAction
 Inherited_id : String
ID reference of the action.
Action
 Inherited_manager : ActionsManager = null
ActionsManager dealing with the control of this action.
Action
 Inherited_source : IDiagramElement = null
The DiagramElement that has triggered this action.
Action
 Inherited_view : DiagramView
The DiagramView where this action has been triggered.
Action
Public Methods
 MethodDefined by
  
ComplexAction(id:String)
Creates a new ComplexAction instance having id as ID.
ComplexAction
  
abort():void
Terminates the execution of this action with success equal to false.
ComplexAction
  
changeCursor(cursorclass:Class, dx:Number, dy:Number):void
Changes the current cursor.
ComplexAction
  
execute(dob:IDiagramElement = null, event:Event = null, args:Array = null):Boolean
Executes the tasks of this action.
ComplexAction
  
removeCursor():void
Removes the used cursor.
ComplexAction
  
rollOut(dob:IDiagramElement, event:MouseEvent):void
Sets the roll out reaction given a DiagramElement and a mouse event.
ComplexAction
  
rollOver(dob:IDiagramElement, event:MouseEvent):void
Sets the roll over reaction given a DiagramElement and a mouse event.
ComplexAction
  
terminate(success:Boolean):void
Terminates the execution of this action with a termination status equal to success.
ComplexAction
  
uiCompleted():void
ComplexAction
Property detail
_activatedproperty
protected var _activated:Boolean = false

Activation status of this complex action.

activatedproperty 
activated:Boolean  [read-only]

Indicates whether this ComplexAction is activated or not.

Implementation
    public function get activated():Boolean
_cursoridproperty 
protected var _cursorid:int = -1

Cursor ID to be used by this complex action.

Constructor detail
ComplexAction()constructor
public function ComplexAction(id:String)

Creates a new ComplexAction instance having id as ID.

Parameters
id:String — ID of the new ComplexAction instance.
Method detail
abort()method
public override function abort():void

Terminates the execution of this action with success equal to false.

changeCursor()method 
public function changeCursor(cursorclass:Class, dx:Number, dy:Number):void

Changes the current cursor.

Parameters
cursorclass:Class — Cursor class (holds information for generating the customized system cursor properties).
 
dx:Number — X position.
 
dy:Number — Y position.
execute()method 
public override function execute(dob:IDiagramElement = null, event:Event = null, args:Array = null):Boolean

Executes the tasks of this action.

Parameters
dob:IDiagramElement (default = null) — DiagramElement instance where this action has been triggered.
 
event:Event (default = null) — The triggered Event.
 
args:Array (default = null) — Parameters used in the execution of this action.

Returns
Boolean — Termination status of the execution of this action.
removeCursor()method 
public function removeCursor():void

Removes the used cursor.

rollOut()method 
public function rollOut(dob:IDiagramElement, event:MouseEvent):void

Sets the roll out reaction given a DiagramElement and a mouse event.

Parameters
dob:IDiagramElement — Diagram Element calling this action event.
 
event:MouseEvent — Detected Mouse Event
rollOver()method 
public function rollOver(dob:IDiagramElement, event:MouseEvent):void

Sets the roll over reaction given a DiagramElement and a mouse event.

Parameters
dob:IDiagramElement — Diagram Element calling this action event.
 
event:MouseEvent — Detected Mouse Event
terminate()method 
public override function terminate(success:Boolean):void

Terminates the execution of this action with a termination status equal to success. A true value of the success parameter indicates that the action has been successfuly finished, while a false value indicates that the action has been aborted.

Parameters
success:Boolean — Termination status of this action. A true value indicates that this action has been successfuly finished, while a false value indicates that the action has been aborted.
uiCompleted()method 
public function uiCompleted():void