Packagecom.kapit.diagram.ui
Classpublic class DrawOrthogonalLinkUI
InheritanceDrawOrthogonalLinkUI Inheritance DrawLinkUI Inheritance flash.display.Shape



Public Properties
 PropertyDefined by
 Inheritedcurpoint : Point
Curpoint property that defines the current selected point.
DrawLinkUI
 Inheritedpoints : Array
Points property that defines the control points array.
DrawLinkUI
Protected Properties
 PropertyDefined by
 Inherited_action : Action = null
Link action used in the link drawing process.
DrawLinkUI
 Inherited_arrowheight : Number = 6
[static] Link arrow height.
DrawLinkUI
 Inherited_arrowwidth : Number = 12
[static] Link arrow width.
DrawLinkUI
 Inherited_cssinitialized : Boolean
[static]
DrawLinkUI
 Inherited_curx : Number
Current cursor X coordinate.
DrawLinkUI
 Inherited_cury : Number
Current cursor Y coordinate.
DrawLinkUI
  _first : Boolean = true
First link drawing step (True if the link drawing process have just been started meaning first link segment drawing).
DrawOrthogonalLinkUI
 Inherited_height : Number = 0
Link height.
DrawLinkUI
  _horizontal : Boolean = true
Link direction (True if horizontal direction).
DrawOrthogonalLinkUI
 Inherited_lastx : Number
Last control point X coordinate.
DrawLinkUI
 Inherited_lasty : Number
Last control point Y coordinate.
DrawLinkUI
 Inherited_linecolor : Number
[static] Line Color.
DrawLinkUI
 Inherited_lineopacity : Number
[static] Line Opacity.
DrawLinkUI
 Inherited_linewidth : Number
[static] Line Width.
DrawLinkUI
 Inherited_points : Array
Control points array that will be updated at drawing runtime to define the Diagram Link parameters.
DrawLinkUI
 Inherited_source : DiagramObject
DiagramObject from which the Link drawing process starts.
DrawLinkUI
 Inherited_stopped : Boolean = false
Link Drawig process status (True if link drawing process is stopped).
DrawLinkUI
 Inherited_styleselector : String = "null"
[static] Used Style Selector
DrawLinkUI
 Inheritedstyleselector : String
[static] Style Selector property that defines the used style selector (style properties) as a String representation.
DrawLinkUI
 Inherited_view : DiagramView
DiagramView to which this DawLinkUI depends.
DrawLinkUI
 Inherited_width : Number = 0
Link width.
DrawLinkUI
Public Methods
 MethodDefined by
  
Creates a DrawOrthogonalLinkUI instance
DrawOrthogonalLinkUI
 Inherited
clear():void
Clears the graphics that were drawn from this Graphics object.
DrawLinkUI
  
run(event:MouseEvent, dob:DiagramObject):void
DrawOrthogonalLinkUI
 Inherited
stop(event:MouseEvent):void
Aborts the link drawing process by removing mouse listeners and draw-link graphics and updates control points array.
DrawLinkUI
Protected Methods
 MethodDefined by
 Inherited
cssInitialize():Boolean
[static] Initialises SVG libraries (icons and graphics) and sets new style properties (CSS).
DrawLinkUI
 Inherited
draw():void
Draws this DrawLinkUI polylines while respecting control points position and style properties.
DrawLinkUI
 Inherited
drawPolyline(polyline:Array):void
DrawLinkUI
 Inherited
drawQuadrics(polyline:Array):void
DrawLinkUI
  
firstSegHandler(event:MouseEvent):void
Draws the first link segment in a new draw link task (when releasing the mouse).
DrawOrthogonalLinkUI
  
handleSeg(event:MouseEvent):void
Handles a link segment drawing given a mouse event (mouse release).
DrawOrthogonalLinkUI
  
mouseDownHandler(event:MouseEvent):void
Saves previous link segment drawing process (adding new control point) and starts a new link Segment drawing process after updating the control points array.
DrawOrthogonalLinkUI
 Inherited
mouseMoveHandler(event:MouseEvent):void
Starts a runtime link Segment drawing (drawing a link segment between two points by moving the mouse).
DrawLinkUI
  
segHandler(event:MouseEvent):void
Draws a link segment in an existing draw link task (when releasing the mouse).
DrawOrthogonalLinkUI
 Inherited
[static] Changes the current used CSS style once an SVGAssetLibraryEvent is flagged.
DrawLinkUI
Property detail
_firstproperty
protected var _first:Boolean = true

First link drawing step (True if the link drawing process have just been started meaning first link segment drawing).

_horizontalproperty 
protected var _horizontal:Boolean = true

Link direction (True if horizontal direction).

Constructor detail
DrawOrthogonalLinkUI()constructor
public function DrawOrthogonalLinkUI(view:DiagramView, action:Action)

Creates a DrawOrthogonalLinkUI instance

Parameters
view:DiagramView — DiagramView in which drawing process is performed.
 
action:Action
Method detail
firstSegHandler()method
protected function firstSegHandler(event:MouseEvent):void

Draws the first link segment in a new draw link task (when releasing the mouse).

Parameters
event:MouseEvent — Detected Mouse Event.
handleSeg()method 
protected override function handleSeg(event:MouseEvent):void

Handles a link segment drawing given a mouse event (mouse release).

Parameters
event:MouseEvent
mouseDownHandler()method 
protected override function mouseDownHandler(event:MouseEvent):void

Saves previous link segment drawing process (adding new control point) and starts a new link Segment drawing process after updating the control points array.

Parameters
event:MouseEvent — Detected Mouse Event (Mouse Down Event).
run()method 
public override function run(event:MouseEvent, dob:DiagramObject):voidParameters
event:MouseEvent
 
dob:DiagramObject
segHandler()method 
protected function segHandler(event:MouseEvent):void

Draws a link segment in an existing draw link task (when releasing the mouse).

Parameters
event:MouseEvent — Detected Mouse Event.