| Package | com.kapit.diagram.ui |
| Class | public class DrawLinkUI |
| Inheritance | DrawLinkUI flash.display.Shape |
| Subclasses | DrawOrthogonalLinkUI |
| Property | Defined by | ||
|---|---|---|---|
| curpoint : Point [read-only]
Curpoint property that defines the current selected point.
| DrawLinkUI | ||
| points : Array [read-only]
Points property that defines the control points array.
| DrawLinkUI | ||
| Property | Defined by | ||
|---|---|---|---|
| _action : Action = null
Link action used in the link drawing process.
| DrawLinkUI | ||
| _arrowheight : Number = 6 [static]
Link arrow height.
| DrawLinkUI | ||
| _arrowwidth : Number = 12 [static]
Link arrow width.
| DrawLinkUI | ||
| _cssinitialized : Boolean [static]
| DrawLinkUI | ||
| _curx : Number
Current cursor X coordinate.
| DrawLinkUI | ||
| _cury : Number
Current cursor Y coordinate.
| DrawLinkUI | ||
| _height : Number = 0
Link height.
| DrawLinkUI | ||
| _lastx : Number
Last control point X coordinate.
| DrawLinkUI | ||
| _lasty : Number
Last control point Y coordinate.
| DrawLinkUI | ||
| _linecolor : Number [static]
Line Color.
| DrawLinkUI | ||
| _lineopacity : Number [static]
Line Opacity.
| DrawLinkUI | ||
| _linewidth : Number [static]
Line Width.
| DrawLinkUI | ||
| _points : Array
Control points array that will be updated at drawing runtime to define the Diagram Link parameters.
| DrawLinkUI | ||
| _source : DiagramObject
DiagramObject from which the Link drawing process starts.
| DrawLinkUI | ||
| _stopped : Boolean = false
Link Drawig process status (True if link drawing process is stopped).
| DrawLinkUI | ||
| _styleselector : String = "null" [static]
Used Style Selector
| DrawLinkUI | ||
| styleselector : String [static]
Style Selector property that defines the used style selector (style properties) as a String representation.
| DrawLinkUI | ||
| _view : DiagramView
DiagramView to which this DawLinkUI depends.
| DrawLinkUI | ||
| _width : Number = 0
Link width.
| DrawLinkUI | ||
| Method | Defined by | ||
|---|---|---|---|
|
Creates a DrawLinkUI instance given a DiagramView in which drawing process is performed and an link action(defining CSS styling, cursor, used style selectors...).
| DrawLinkUI | ||
|
clear():void
Clears the graphics that were drawn from this Graphics object.
| DrawLinkUI | ||
|
run(event:MouseEvent, dob:DiagramObject):void
Starts link drawing pocess from a Diagram Object by applying mouse listeners and defining link drawing status (first step, current point...).
| DrawLinkUI | ||
|
stop(event:MouseEvent):void
Aborts the link drawing process by removing mouse listeners and draw-link graphics and updates
control points array.
| DrawLinkUI | ||
| Method | Defined by | ||
|---|---|---|---|
|
cssInitialize():Boolean
[static]
Initialises SVG libraries (icons and graphics) and sets new style properties (CSS).
| DrawLinkUI | ||
|
draw():void
Draws this DrawLinkUI polylines while respecting control points position and style properties.
| DrawLinkUI | ||
|
drawPolyline(polyline:Array):void
| DrawLinkUI | ||
|
drawQuadrics(polyline:Array):void
| DrawLinkUI | ||
|
handleSeg(event:MouseEvent):void
Handles a link segment drawing given a mouse event (mouse release).
| DrawLinkUI | ||
|
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.
| DrawLinkUI | ||
|
mouseMoveHandler(event:MouseEvent):void
Starts a runtime link Segment drawing (drawing a link segment between two points by moving the mouse).
| DrawLinkUI | ||
|
styleChanged(event:SVGAssetLibraryEvent):void
[static]
Changes the current used CSS style once an SVGAssetLibraryEvent is flagged.
| DrawLinkUI | ||
| _action | property |
protected var _action:Action = nullLink action used in the link drawing process.
| _arrowheight | property |
protected static var _arrowheight:Number = 6Link arrow height.
| _arrowwidth | property |
protected static var _arrowwidth:Number = 12Link arrow width.
| _cssinitialized | property |
protected static var _cssinitialized:Boolean
| curpoint | property |
curpoint:Point [read-only]Curpoint property that defines the current selected point.
Implementation public function get curpoint():Point
| _curx | property |
protected var _curx:NumberCurrent cursor X coordinate.
| _cury | property |
protected var _cury:NumberCurrent cursor Y coordinate.
| _height | property |
protected var _height:Number = 0Link height.
| _lastx | property |
protected var _lastx:NumberLast control point X coordinate.
| _lasty | property |
protected var _lasty:NumberLast control point Y coordinate.
| _linecolor | property |
protected static var _linecolor:NumberLine Color.
| _lineopacity | property |
protected static var _lineopacity:NumberLine Opacity.
| _linewidth | property |
protected static var _linewidth:NumberLine Width.
| _points | property |
protected var _points:ArrayControl points array that will be updated at drawing runtime to define the Diagram Link parameters.
| points | property |
points:Array [read-only]Points property that defines the control points array.
Implementation public function get points():Array
| _source | property |
protected var _source:DiagramObjectDiagramObject from which the Link drawing process starts.
| _stopped | property |
protected var _stopped:Boolean = falseLink Drawig process status (True if link drawing process is stopped).
| _styleselector | property |
protected static var _styleselector:String = "null"Used Style Selector
| styleselector | property |
styleselector:String [read-write]Style Selector property that defines the used style selector (style properties) as a String representation.
Implementation protected static function get styleselector():String
protected function set styleselector(value:String):void
| _view | property |
protected var _view:DiagramViewDiagramView to which this DawLinkUI depends.
| _width | property |
protected var _width:Number = 0Link width.
| DrawLinkUI | () | constructor |
public function DrawLinkUI(view:DiagramView, action:Action)Creates a DrawLinkUI instance given a DiagramView in which drawing process is performed and an link action(defining CSS styling, cursor, used style selectors...).
Parametersview:DiagramView — DiagramView in which drawing process is performed.
|
|
action:Action |
| clear | () | method |
public function clear():voidClears the graphics that were drawn from this Graphics object.
| cssInitialize | () | method |
protected static function cssInitialize():BooleanInitialises SVG libraries (icons and graphics) and sets new style properties (CSS).
ReturnsBoolean — CSS properties loading status (success/failure).
|
| draw | () | method |
protected function draw():voidDraws this DrawLinkUI polylines while respecting control points position and style properties.
| drawPolyline | () | method |
protected function drawPolyline(polyline:Array):voidParameters
polyline:Array |
| drawQuadrics | () | method |
protected function drawQuadrics(polyline:Array):voidParameters
polyline:Array |
| handleSeg | () | method |
protected function handleSeg(event:MouseEvent):voidHandles a link segment drawing given a mouse event (mouse release).
Parametersevent:MouseEvent |
| mouseDownHandler | () | method |
protected function mouseDownHandler(event:MouseEvent):voidSaves previous link segment drawing process (adding new control point) and starts a new link Segment drawing process after updating the control points array.
Parametersevent:MouseEvent — Detected Mouse Event (Mouse Down Event).
|
| mouseMoveHandler | () | method |
protected function mouseMoveHandler(event:MouseEvent):voidStarts a runtime link Segment drawing (drawing a link segment between two points by moving the mouse).
Parametersevent:MouseEvent — Detected Mouse Event (Mouse Move Event).
|
| run | () | method |
public function run(event:MouseEvent, dob:DiagramObject):voidStarts link drawing pocess from a Diagram Object by applying mouse listeners and defining link drawing status (first step, current point...).
Parametersevent:MouseEvent — Detected Mouse Event.
|
|
dob:DiagramObject |
| stop | () | method |
public function stop(event:MouseEvent):voidAborts the link drawing process by removing mouse listeners and draw-link graphics and updates control points array.
Parametersevent:MouseEvent — Detected Mouse Event.
|
| styleChanged | () | method |
protected static function styleChanged(event:SVGAssetLibraryEvent):voidChanges the current used CSS style once an SVGAssetLibraryEvent is flagged.
Parametersevent:SVGAssetLibraryEvent — SVGAssetLibraryEvent telling that new style poroperties were loaded.
|