Package | twaver.network.ui |
Class | public class LinkUI |
Inheritance | LinkUI ![]() ![]() |
Subclasses | ShapeLinkUI |
See also
Property | Defined By | ||
---|---|---|---|
![]() | alarmAttachment : AlarmAttachment [read-only]
Get alarm attachment of this element ui. | ElementUI | |
angle : Number [read-only]
Get the link angle. | LinkUI | ||
![]() | attachments : ICollection [read-only]
Get all attachments as a collection. | ElementUI | |
![]() | bodyRect : Rectangle [read-only]
Get the element body rectangle. | ElementUI | |
controlPoint : Point
Get control point of this link ui. | LinkUI | ||
![]() | editAttachment : EditAttachment [read-only]
Get edit attachment. | ElementUI | |
![]() | element : IElement [read-only]
Get the element of this element ui. | ElementUI | |
fromPoint : Point [read-only]
Get the link from point. | LinkUI | ||
![]() | hotSpot : Point
Get hotspot point of this element ui. | ElementUI | |
![]() | iconsAttachment : IconsAttachment [read-only]
Get icon attachment. | ElementUI | |
![]() | labelAttachment : LabelAttachment [read-only]
Get label attachment of this element ui. | ElementUI | |
lineLength : Number [read-only]
Get line segment count of this link. | LinkUI | ||
link : Link [read-only]
Get the connected link element. | LinkUI | ||
linkPoints : ICollection [read-only]
Get all control points of the link element. | LinkUI | ||
![]() | network : Network [read-only]
Get network component this element ui displayed on. | ElementUI | |
toPoint : Point [read-only]
Get the link from point. | LinkUI | ||
![]() | unionBounds : Rectangle [read-only]
Get the rectangle covers all graphical elements,
including element body and all attachments. | ElementUI | |
![]() | visible : Boolean [override] [write-only]
| ElementUI |
Method | Defined By | ||
---|---|---|---|
Create link ui for specified link element. | LinkUI | ||
Recalculate link control points and return points
as a collection. | LinkUI | ||
checkAttachments():void [override]
Check all attachments installed on this element ui. | LinkUI | ||
![]() | dispose():void
Dispose all resources used by this element ui. | ElementUI | |
getBundleGap(looped:Boolean = false):Number
Get the gap between bundled links. | LinkUI | ||
getBundleOffset(fromPoint:Point, toPoint:Point):Number
Get the link bundle flexion point offset. | LinkUI | ||
![]() | handlePropertyChange(e:PropertyChangeEvent):void
Called when any element property changed. | ElementUI | |
![]() |
Called when selection changed. | ElementUI | |
![]() | hitsTest(point:Point, tolerance:int):Object | ElementUI | |
![]() | invalidate(checkAttachments:Boolean):void
Invalidate element ui. | ElementUI | |
![]() | updateProperties():void
Update all properties from network and element,
redraw this element ui. | ElementUI |
Method | Defined By | ||
---|---|---|---|
![]() | addAttachment(attachment:Attachment):void
Add attachment into this element ui. | ElementUI | |
![]() | checkAlarmAttachment():void
Check, update and display alarm attachment. | ElementUI | |
![]() | checkEditAttachment():void
Check, update and display edit attachment. | ElementUI | |
![]() | checkIconsAttachment():void
Check, update and display icon attachment. | ElementUI | |
![]() | checkLabelAttachment():void
Check, update and display label attachment. | ElementUI | |
checkLinkHandlerAttachment():void
Create link handler attachment for this link element. | LinkUI | ||
![]() | commitProperties():void [override]
| ElementUI | |
![]() | createBodyFilters():Array
Create element body effect filters of this element ui. | ElementUI | |
createBodyRect():Rectangle [override]
Create body bound rectangle. | LinkUI | ||
![]() | createFilters():Array
Create element effect filters of this element ui. | ElementUI | |
drawBody(g:Graphics):void [override]
Draw element body. | LinkUI | ||
![]() | getDyeColor(styleProp:String):Number
Get dye color of the specified style property. | ElementUI | |
isEditable():Boolean [override]
Check whether this element is editable now. | LinkUI | ||
![]() | measure():void [override]
| ElementUI | |
![]() | removeAttachment(attachment:Attachment):void
Remove specified attachment from this element ui. | ElementUI | |
![]() | updateMeasure():void
Update element measure. | ElementUI |
angle | property |
angle:Number
[read-only] Get the link angle.
public function get angle():Number
controlPoint | property |
controlPoint:Point
Get control point of this link ui.
public function get controlPoint():Point
public function set controlPoint(value:Point):void
fromPoint | property |
fromPoint:Point
[read-only] Get the link from point.
public function get fromPoint():Point
lineLength | property |
lineLength:Number
[read-only] Get line segment count of this link.
public function get lineLength():Number
link | property |
link:Link
[read-only] Get the connected link element.
public function get link():Link
linkPoints | property |
linkPoints:ICollection
[read-only] Get all control points of the link element.
public function get linkPoints():ICollection
toPoint | property |
toPoint:Point
[read-only] Get the link from point.
public function get toPoint():Point
LinkUI | () | Constructor |
public function LinkUI(network:Network, link:Link)
Create link ui for specified link element.
Parametersnetwork:Network — network component this link ui displayed on
| |
link:Link — the link element of this link ui.
|
calculateLinkPoints | () | method |
public function calculateLinkPoints():ICollection
Recalculate link control points and return points as a collection.
ReturnsICollection — the recalculated and recreated link control points.
|
checkAttachments | () | method |
override public function checkAttachments():void
Check all attachments installed on this element ui.
checkLinkHandlerAttachment | () | method |
protected function checkLinkHandlerAttachment():void
Create link handler attachment for this link element. Link handler is a small icon that indicate links are bundled together. You can double click the handler icon to expand or close the links.
createBodyRect | () | method |
override protected function createBodyRect():Rectangle
Create body bound rectangle.
ReturnsRectangle — body bound rectangle.
|
drawBody | () | method |
override protected function drawBody(g:Graphics):void
Draw element body.
Parameters
g:Graphics — the graphic draw body on.
|
getBundleGap | () | method |
public function getBundleGap(looped:Boolean = false):Number
Get the gap between bundled links.
Parameters
looped:Boolean (default = false ) — whether link is looped link. Default value is false.
|
Number — the gap between bundled links.
|
getBundleOffset | () | method |
public function getBundleOffset(fromPoint:Point, toPoint:Point):Number
Get the link bundle flexion point offset.
Parameters
fromPoint:Point — from point of the link.
| |
toPoint:Point — to point of the link
|
Number — the link bundle flexion point offset.
|
isEditable | () | method |
override protected function isEditable():Boolean
Check whether this element is editable now.
ReturnsBoolean — whether this element is editable now.
|