Package | twaver.network.ui |
Class | public class ShapeLinkUI |
Inheritance | ShapeLinkUI ![]() ![]() ![]() |
ShapeLink
.
This shape link ui will draw link on network canvas.
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 | |
shapeLink : ShapeLink [read-only]
Get the shape link element of this ui. | ShapeLinkUI | ||
![]() | 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 shape link ui for specified shape link element. | ShapeLinkUI | ||
[override]
Recalculate link control points and return points
as a collection. | ShapeLinkUI | ||
![]() | 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. | ShapeLinkUI | ||
![]() | measure():void [override]
| ElementUI | |
![]() | removeAttachment(attachment:Attachment):void
Remove specified attachment from this element ui. | ElementUI | |
![]() | updateMeasure():void
Update element measure. | ElementUI |
shapeLink | property |
shapeLink:ShapeLink
[read-only] Get the shape link element of this ui.
public function get shapeLink():ShapeLink
ShapeLinkUI | () | Constructor |
public function ShapeLinkUI(network:Network, shapeLink:ShapeLink)
Create shape link ui for specified shape link element.
Parametersnetwork:Network — network component to display shape link element.
| |
shapeLink:ShapeLink — the connected shape link element.
|
calculateLinkPoints | () | method |
override public function calculateLinkPoints():ICollection
Recalculate link control points and return points as a collection.
ReturnsICollection — the recalculated and recreated link control points.
|
isEditable | () | method |
override protected function isEditable():Boolean
Check whether this element is editable now.
ReturnsBoolean — whether this element is editable now.
|