| Package | com.kapit.diagram.actions |
| Class | public class DragLinkAction |
| Inheritance | DragLinkAction ComplexAction Action |
| Property | Defined by | ||
|---|---|---|---|
![]() | _activated : Boolean = false
Activation status of this complex action.
| ComplexAction | |
![]() | _cursorid : int = -1
Cursor ID to be used by this complex action.
| ComplexAction | |
| _dragging : Boolean = false
Dragging status (True if the draggibg operation is in progress.
| DragLinkAction | ||
| _group : DiagramGroup = null
The GroupDiagramObject to which the source Diagram Element belongs.
| DragLinkAction | ||
![]() | _id : String
ID reference of the action.
| Action | |
| _link : DiagramLink = null
The Link Diagram Object
| DragLinkAction | ||
![]() | _manager : ActionsManager = null
ActionsManager dealing with the control of this action.
| Action | |
![]() | _source : IDiagramElement = null
The DiagramElement that has triggered this action.
| Action | |
| _target : DiagramObject = null
The Target Diagram Element
| DragLinkAction | ||
![]() | _view : DiagramView
The DiagramView where this action has been triggered.
| Action | |
| Method | Defined by | ||
|---|---|---|---|
|
Creates a DragLinkAction instance having
"draglink"as ID. | DragLinkAction | ||
|
abort():void
Terminates the execution of this action with
success
equal to false. | DragLinkAction | ||
![]() |
changeCursor(cursorclass:Class, dx:Number, dy:Number):void
Changes the current cursor.
| ComplexAction | |
|
execute(el:IDiagramElement = null, event:Event = null, args:Array = null):Boolean
Executes the tasks of this action.
| DragLinkAction | ||
|
mouseMoveHandler(event:MouseEvent):void
Starts the dragging operation and adds the selected DiagramObject to the view.
| DragLinkAction | ||
|
mouseUpHandler(event:MouseEvent):void
Releases the DiagramElement at the chosen region and terminates dragging if mouse up event is triggered.
| DragLinkAction | ||
![]() |
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. | DragLinkAction | ||
![]() |
uiCompleted():void
| ComplexAction | |
| Method | Defined by | ||
|---|---|---|---|
|
Specifies three points for drawing the link between a source and a target
Diagram Elements (the source point, the target point and a middle point).
| DragLinkAction | ||
| _dragging | property |
protected var _dragging:Boolean = falseDragging status (True if the draggibg operation is in progress.
| _group | property |
protected var _group:DiagramGroup = nullThe GroupDiagramObject to which the source Diagram Element belongs.
| _link | property |
protected var _link:DiagramLink = nullThe Link Diagram Object
| _target | property |
protected var _target:DiagramObject = nullThe Target Diagram Element
| DragLinkAction | () | constructor |
public function DragLinkAction()
Creates a DragLinkAction instance having "draglink"as ID.
| abort | () | method |
public override function abort():void
Terminates the execution of this action with success
equal to false.
| execute | () | method |
public override function execute(el:IDiagramElement = null, event:Event = null, args:Array = null):BooleanExecutes the tasks of this action. This action is executed when an GriddedButton of a GriddedButtonBar is selected and dragged by the user. This operation creates the specified DiagramElement in the view and draws the link between the source DiagramElement and the created one.
Parametersel: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.
|
Boolean — Termination status of the execution of this action.
|
| initPoints | () | method |
protected function initPoints(source:DiagramObject, target:DiagramObject):ArraySpecifies three points for drawing the link between a source and a target Diagram Elements (the source point, the target point and a middle point).
Parameterssource:DiagramObject — Source DiagramElement
|
|
target:DiagramObject — Target DiagramElement
|
Array — Array of three points defining the link parameters.
|
| mouseMoveHandler | () | method |
public function mouseMoveHandler(event:MouseEvent):voidStarts the dragging operation and adds the selected DiagramObject to the view. The release of the down button leads the dragging operation to terminate.
Parametersevent:MouseEvent — Detected Mouse Event.
|
| mouseUpHandler | () | method |
public function mouseUpHandler(event:MouseEvent):voidReleases the DiagramElement at the chosen region and terminates dragging if mouse up event is triggered.
Parametersevent:MouseEvent — detected MouseEvent
|
| 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.
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.
|