Package | twaver.network.ui |
Class | public class LinkHandlerAttachment |
Inheritance | LinkHandlerAttachment ![]() ![]() ![]() |
See also
Property | Defined By | ||
---|---|---|---|
![]() | attachmentSprite : Sprite | Attachment | |
![]() | attachmentSpriteTransform : Transform | Attachment | |
![]() | bounds : Rectangle [override] [read-only]
Get attachment bounds. | BasicAttachment | |
![]() | content : DisplayObject
Get the display object content of this attachment. | BasicAttachment | |
![]() | contentHeight : Number [read-only]
Get attachment content height. | BasicAttachment | |
![]() | contentWidth : Number [read-only]
Get attachment content width. | BasicAttachment | |
![]() | contentXScale : Number [read-only]
Get attachment x scale. | BasicAttachment | |
![]() | contentYScale : 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 | ||
![]() | element : IElement [read-only]
Get element ui related element object. | Attachment | |
![]() | elementUI : 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 | ||
![]() | network : Network [read-only]
Get network component this attachment display on. | Attachment | |
![]() | outlineAlpha : Number [read-only]
Get attachment outline color transparency. | BasicAttachment | |
![]() | outlineColor : Number [read-only]
Get attachment outline color. | BasicAttachment | |
![]() | outlineWidth : Number [read-only]
Get attachment outline stroke width. | BasicAttachment | |
![]() | padding : Number [read-only]
Get padding blank space of this attachment. | BasicAttachment | |
![]() | paddingBottom : Number [read-only]
Get bottom padding blank space of this attachment. | BasicAttachment | |
![]() | paddingLeft : Number [read-only]
Get left padding blank space of this attachment. | BasicAttachment | |
![]() | paddingRight : Number [read-only]
Get right padding blank space of this attachment. | BasicAttachment | |
![]() | paddingTop : 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 | ||
![]() | roundRect : Rectangle [read-only]
Get the round rectangle of this attachment. | BasicAttachment | |
![]() | showInAttachmentCanvas : 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 |
Method | Defined By | ||
---|---|---|---|
LinkHandlerAttachment(linkUI:LinkUI, showInAttachmentCanvas:Boolean = false)
Link handler attachment constructor. | LinkHandlerAttachment | ||
![]() | dispose():void
Call this to dispose all resources used by this attachment. | Attachment | |
![]() | draw(graphics:Graphics):void [override]
Draw attachment content. | BasicAttachment | |
![]() | setMatrix(matrix:Matrix):void [override]
Set attachment transform matrix. | BasicAttachment | |
![]() | updateAlpha():void
Update attachment transparency. | Attachment | |
updateProperties():void [override]
Update element attachment properties. | LinkHandlerAttachment |
cornerRadius | property |
cornerRadius:Number
[read-only] [override] Get corner radius of the round rectangle shape. Default value is 8.
public function get cornerRadius():Number
direction | property |
direction:String
[read-only] [override] Get attachment growing direction. This value can be:
Consts.ATTACHMENT_DIRECTION_RIGHT
.
public function get direction():String
fill | property |
fill:Boolean
[read-only] [override] Whether this attachment need to fill. Default value is false.
public function get fill():Boolean
fillAlpha | property |
fillAlpha:Number
[read-only] [override] Get attachment fill color transparency. Default value is 1, no transparency.
public function get fillAlpha():Number
fillColor | property |
fillColor:Number
[read-only] [override] Get attachment fill color. Default color is black.
public function get fillColor():Number
gradient | property |
gradient:String
[read-only] [override] Get attachment fill gradient pattern. Default value is null, no gradient.
This value can be:
public function get gradient():String
gradientAlpha | property |
gradientAlpha:Number
[read-only] [override] Get attachment fill gradient color transparency. Default value is 1, no transparency.
public function get gradientAlpha():Number
gradientColor | property |
gradientColor:Number
[read-only] [override] Get attachment fill gradient color. Default is white color.
public function get gradientColor():Number
pointerLength | property |
pointerLength:Number
[read-only] [override] Get pointer length of this attachment shape, typically this is for alarm bubble attachment. Default value is 10.
public function get pointerLength():Number
pointerWidth | property |
pointerWidth:Number
[read-only] [override] Get pointer length of this attachment shape, typically this is for alarm bubble attachment. Default value is 8.
public function get pointerWidth():Number
position | property |
position:String
[read-only] [override] Get attachment based position of element body.
The value can be:
This default value is Consts.POSITION_TOPRIGHT_TOPRIGHT
.
public function get position():String
xOffset | property |
xOffset:Number
[read-only] [override] Get the extra x position offset of this attachment base on the attachment position. Default value is 0.
public function get xOffset():Number
yOffset | property |
yOffset:Number
[read-only] [override] Get the extra y position offset of this attachment base on the attachment position. Default value is 0.
public function get yOffset():Number
LinkHandlerAttachment | () | Constructor |
public function LinkHandlerAttachment(linkUI:LinkUI, showInAttachmentCanvas:Boolean = false)
Link handler attachment constructor.
ParameterslinkUI: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.
|
updateProperties | () | method |
override public function updateProperties():void
Update element attachment properties. This will redraw attachment.