Packagetwaver.network.ui
Classpublic class ShapeLinkUI
InheritanceShapeLinkUI Inheritance LinkUI Inheritance ElementUI Inheritance mx.core.UIComponent

This is the element ui for ShapeLink. This shape link ui will draw link on network canvas.

See also

twaver.ShapeLink
LinkUI
twaver.Link


Public Properties
 PropertyDefined By
 InheritedalarmAttachment : AlarmAttachment
[read-only] Get alarm attachment of this element ui.
ElementUI
 Inheritedangle : Number
[read-only] Get the link angle.
LinkUI
 Inheritedattachments : ICollection
[read-only] Get all attachments as a collection.
ElementUI
 InheritedbodyRect : Rectangle
[read-only] Get the element body rectangle.
ElementUI
 InheritedcontrolPoint : Point
Get control point of this link ui.
LinkUI
 InheritededitAttachment : EditAttachment
[read-only] Get edit attachment.
ElementUI
 Inheritedelement : IElement
[read-only] Get the element of this element ui.
ElementUI
 InheritedfromPoint : Point
[read-only] Get the link from point.
LinkUI
 InheritedhotSpot : Point
Get hotspot point of this element ui.
ElementUI
 InheritediconsAttachment : IconsAttachment
[read-only] Get icon attachment.
ElementUI
 InheritedlabelAttachment : LabelAttachment
[read-only] Get label attachment of this element ui.
ElementUI
 InheritedlineLength : Number
[read-only] Get line segment count of this link.
LinkUI
 Inheritedlink : Link
[read-only] Get the connected link element.
LinkUI
 InheritedlinkPoints : ICollection
[read-only] Get all control points of the link element.
LinkUI
 Inheritednetwork : Network
[read-only] Get network component this element ui displayed on.
ElementUI
  shapeLink : ShapeLink
[read-only] Get the shape link element of this ui.
ShapeLinkUI
 InheritedtoPoint : Point
[read-only] Get the link from point.
LinkUI
 InheritedunionBounds : Rectangle
[read-only] Get the rectangle covers all graphical elements, including element body and all attachments.
ElementUI
 Inheritedvisible : Boolean
[override] [write-only]
ElementUI
Protected Properties
 PropertyDefined By
 InheritedbodyComponent : UIComponent
ElementUI
 InheritedinnerColor : Object
[read-only] Get element inner color.
ElementUI
 InheritedouterColor : Object
[read-only] Get element outline color.
ElementUI
Public Methods
 MethodDefined By
  
ShapeLinkUI(network:Network, shapeLink:ShapeLink)
Create shape link ui for specified shape link element.
ShapeLinkUI
  
[override] Recalculate link control points and return points as a collection.
ShapeLinkUI
 Inherited
[override] Check all attachments installed on this element ui.
LinkUI
 Inherited
dispose():void
Dispose all resources used by this element ui.
ElementUI
 Inherited
getBundleGap(looped:Boolean = false):Number
Get the gap between bundled links.
LinkUI
 Inherited
getBundleOffset(fromPoint:Point, toPoint:Point):Number
Get the link bundle flexion point offset.
LinkUI
 Inherited
handlePropertyChange(e:PropertyChangeEvent):void
Called when any element property changed.
ElementUI
 Inherited
Called when selection changed.
ElementUI
 Inherited
hitsTest(point:Point, tolerance:int):Object
ElementUI
 Inherited
invalidate(checkAttachments:Boolean):void
Invalidate element ui.
ElementUI
 Inherited
Update all properties from network and element, redraw this element ui.
ElementUI
Protected Methods
 MethodDefined By
 Inherited
addAttachment(attachment:Attachment):void
Add attachment into this element ui.
ElementUI
 Inherited
Check, update and display alarm attachment.
ElementUI
 Inherited
Check, update and display edit attachment.
ElementUI
 Inherited
Check, update and display icon attachment.
ElementUI
 Inherited
Check, update and display label attachment.
ElementUI
 Inherited
Create link handler attachment for this link element.
LinkUI
 Inherited
[override]
ElementUI
 Inherited
Create element body effect filters of this element ui.
ElementUI
 Inherited
createBodyRect():Rectangle
[override] Create body bound rectangle.
LinkUI
 Inherited
Create element effect filters of this element ui.
ElementUI
 Inherited
drawBody(g:Graphics):void
[override] Draw element body.
LinkUI
 Inherited
getDyeColor(styleProp:String):Number
Get dye color of the specified style property.
ElementUI
  
isEditable():Boolean
[override] Check whether this element is editable now.
ShapeLinkUI
 Inherited
measure():void
[override]
ElementUI
 Inherited
removeAttachment(attachment:Attachment):void
Remove specified attachment from this element ui.
ElementUI
 Inherited
Update element measure.
ElementUI
Property Detail
shapeLinkproperty
shapeLink:ShapeLink  [read-only]

Get the shape link element of this ui.


Implementation
    public function get shapeLink():ShapeLink
Constructor Detail
ShapeLinkUI()Constructor
public function ShapeLinkUI(network:Network, shapeLink:ShapeLink)

Create shape link ui for specified shape link element.

Parameters
network:Network — network component to display shape link element.
 
shapeLink:ShapeLink — the connected shape link element.
Method Detail
calculateLinkPoints()method
override public function calculateLinkPoints():ICollection

Recalculate link control points and return points as a collection.

Returns
ICollection — the recalculated and recreated link control points.
isEditable()method 
override protected function isEditable():Boolean

Check whether this element is editable now.

Returns
Boolean — whether this element is editable now.