Packagetwaver.network.ui
Classpublic class LinkHandlerAttachment
InheritanceLinkHandlerAttachment Inheritance BasicAttachment Inheritance Attachment Inheritance mx.core.UIComponent

This attachment draw the link bundle handler for link ui. The link handler is a small icon indicate links are bundled together. Double click this handler you can expand or close the link bundle.

See also

BasicAttachment


Public Properties
 PropertyDefined By
 InheritedattachmentSprite : Sprite
Attachment
 InheritedattachmentSpriteTransform : Transform
Attachment
 Inheritedbounds : Rectangle
[override] [read-only] Get attachment bounds.
BasicAttachment
 Inheritedcontent : DisplayObject
Get the display object content of this attachment.
BasicAttachment
 InheritedcontentHeight : Number
[read-only] Get attachment content height.
BasicAttachment
 InheritedcontentWidth : Number
[read-only] Get attachment content width.
BasicAttachment
 InheritedcontentXScale : Number
[read-only] Get attachment x scale.
BasicAttachment
 InheritedcontentYScale : Number
[read-only] Get attachment y scale.
BasicAttachment
  cornerRadius : Number
[override] [read-only] Get corner radius of the round rectangle shape.
LinkHandlerAttachment
  direction : String
[override] [read-only] Get attachment growing direction.
LinkHandlerAttachment
 Inheritedelement : IElement
[read-only] Get element ui related element object.
Attachment
 InheritedelementUI : ElementUI
[read-only] Get connected element ui.
Attachment
  fill : Boolean
[override] [read-only] Whether this attachment need to fill.
LinkHandlerAttachment
  fillAlpha : Number
[override] [read-only] Get attachment fill color transparency.
LinkHandlerAttachment
  fillColor : Number
[override] [read-only] Get attachment fill color.
LinkHandlerAttachment
  gradient : String
[override] [read-only] Get attachment fill gradient pattern.
LinkHandlerAttachment
  gradientAlpha : Number
[override] [read-only] Get attachment fill gradient color transparency.
LinkHandlerAttachment
  gradientColor : Number
[override] [read-only] Get attachment fill gradient color.
LinkHandlerAttachment
 Inheritednetwork : Network
[read-only] Get network component this attachment display on.
Attachment
 InheritedoutlineAlpha : Number
[read-only] Get attachment outline color transparency.
BasicAttachment
 InheritedoutlineColor : Number
[read-only] Get attachment outline color.
BasicAttachment
 InheritedoutlineWidth : Number
[read-only] Get attachment outline stroke width.
BasicAttachment
 Inheritedpadding : Number
[read-only] Get padding blank space of this attachment.
BasicAttachment
 InheritedpaddingBottom : Number
[read-only] Get bottom padding blank space of this attachment.
BasicAttachment
 InheritedpaddingLeft : Number
[read-only] Get left padding blank space of this attachment.
BasicAttachment
 InheritedpaddingRight : Number
[read-only] Get right padding blank space of this attachment.
BasicAttachment
 InheritedpaddingTop : Number
[read-only] Get top padding blank space of this attachment.
BasicAttachment
  pointerLength : Number
[override] [read-only] Get pointer length of this attachment shape, typically this is for alarm bubble attachment.
LinkHandlerAttachment
  pointerWidth : Number
[override] [read-only] Get pointer length of this attachment shape, typically this is for alarm bubble attachment.
LinkHandlerAttachment
  position : String
[override] [read-only] Get attachment based position of element body.
LinkHandlerAttachment
 InheritedroundRect : Rectangle
[read-only] Get the round rectangle of this attachment.
BasicAttachment
 InheritedshowInAttachmentCanvas : Boolean
[read-only] Get value whether show this attachment a the separate attachment canvas in network.
Attachment
  xOffset : Number
[override] [read-only] Get the extra x position offset of this attachment base on the attachment position.
LinkHandlerAttachment
  yOffset : Number
[override] [read-only] Get the extra y position offset of this attachment base on the attachment position.
LinkHandlerAttachment
Public Methods
 MethodDefined By
  
LinkHandlerAttachment(linkUI:LinkUI, showInAttachmentCanvas:Boolean = false)
Link handler attachment constructor.
LinkHandlerAttachment
 Inherited
dispose():void
Call this to dispose all resources used by this attachment.
Attachment
 Inherited
draw(graphics:Graphics):void
[override] Draw attachment content.
BasicAttachment
 Inherited
setMatrix(matrix:Matrix):void
[override] Set attachment transform matrix.
BasicAttachment
 Inherited
Update attachment transparency.
Attachment
  
[override] Update element attachment properties.
LinkHandlerAttachment
Protected Methods
 MethodDefined By
 Inherited
Create filters.
Attachment
 Inherited
measure():void
[override]
Attachment
Property Detail
cornerRadiusproperty
cornerRadius:Number  [read-only] [override]

Get corner radius of the round rectangle shape. Default value is 8.


Implementation
    public function get cornerRadius():Number
directionproperty 
direction:String  [read-only] [override]

Get attachment growing direction. This value can be:

Default value is Consts.ATTACHMENT_DIRECTION_RIGHT.


Implementation
    public function get direction():String
fillproperty 
fill:Boolean  [read-only] [override]

Whether this attachment need to fill. Default value is false.


Implementation
    public function get fill():Boolean
fillAlphaproperty 
fillAlpha:Number  [read-only] [override]

Get attachment fill color transparency. Default value is 1, no transparency.


Implementation
    public function get fillAlpha():Number
fillColorproperty 
fillColor:Number  [read-only] [override]

Get attachment fill color. Default color is black.


Implementation
    public function get fillColor():Number
gradientproperty 
gradient:String  [read-only] [override]

Get attachment fill gradient pattern. Default value is null, no gradient.

This value can be:


Implementation
    public function get gradient():String
gradientAlphaproperty 
gradientAlpha:Number  [read-only] [override]

Get attachment fill gradient color transparency. Default value is 1, no transparency.


Implementation
    public function get gradientAlpha():Number
gradientColorproperty 
gradientColor:Number  [read-only] [override]

Get attachment fill gradient color. Default is white color.


Implementation
    public function get gradientColor():Number
pointerLengthproperty 
pointerLength:Number  [read-only] [override]

Get pointer length of this attachment shape, typically this is for alarm bubble attachment. Default value is 10.


Implementation
    public function get pointerLength():Number
pointerWidthproperty 
pointerWidth:Number  [read-only] [override]

Get pointer length of this attachment shape, typically this is for alarm bubble attachment. Default value is 8.


Implementation
    public function get pointerWidth():Number
positionproperty 
position:String  [read-only] [override]

Get attachment based position of element body.

The value can be:

This default value is Consts.POSITION_TOPRIGHT_TOPRIGHT.


Implementation
    public function get position():String
xOffsetproperty 
xOffset:Number  [read-only] [override]

Get the extra x position offset of this attachment base on the attachment position. Default value is 0.


Implementation
    public function get xOffset():Number
yOffsetproperty 
yOffset:Number  [read-only] [override]

Get the extra y position offset of this attachment base on the attachment position. Default value is 0.


Implementation
    public function get yOffset():Number
Constructor Detail
LinkHandlerAttachment()Constructor
public function LinkHandlerAttachment(linkUI:LinkUI, showInAttachmentCanvas:Boolean = false)

Link handler attachment constructor.

Parameters
linkUI:LinkUI — link ui this attachment display on
 
showInAttachmentCanvas:Boolean (default = false) — whether show this attachment a the separate attachment canvas in network. See class Network to know more about the network internal canvas hierarchy. Because attachment canvas is in front of other canvas, so this attachment will not covered by other element body if set this value to true. Default value here is false.
Method Detail
updateProperties()method
override public function updateProperties():void

Update element attachment properties. This will redraw attachment.