Packagetwaver.network.ui
Classpublic class IconsAttachment
InheritanceIconsAttachment Inheritance Attachment Inheritance mx.core.UIComponent

This icon attachment display all attached icons on element body. Each icon contains a bitmap image and displayed in the specified position.



Public Properties
 PropertyDefined By
 InheritedattachmentSprite : Sprite
Attachment
 InheritedattachmentSpriteTransform : Transform
Attachment
 Inheritedbounds : Rectangle
[read-only] Get attachment bounds.
Attachment
 Inheritedelement : IElement
[read-only] Get element ui related element object.
Attachment
 InheritedelementUI : ElementUI
[read-only] Get connected element ui.
Attachment
 Inheritednetwork : Network
[read-only] Get network component this attachment display on.
Attachment
 InheritedshowInAttachmentCanvas : Boolean
[read-only] Get value whether show this attachment a the separate attachment canvas in network.
Attachment
Public Methods
 MethodDefined By
  
IconsAttachment(elementUI:ElementUI, showInAttachmentCanvas:Boolean = false)
Create icon attachment for the specified element ui.
IconsAttachment
 Inherited
dispose():void
Call this to dispose all resources used by this attachment.
Attachment
  
draw(graphics:Graphics):void
[override] Draw attachment content.
IconsAttachment
 Inherited
setMatrix(matrix:Matrix):void
Set attachment transform matrix.
Attachment
 Inherited
Update attachment transparency.
Attachment
 Inherited
Update element attachment properties.
Attachment
Protected Methods
 MethodDefined By
 Inherited
Create filters.
Attachment
 Inherited
measure():void
[override]
Attachment
Constructor Detail
IconsAttachment()Constructor
public function IconsAttachment(elementUI:ElementUI, showInAttachmentCanvas:Boolean = false)

Create icon attachment for the specified element ui.

Parameters
elementUI:ElementUI — element ui this icon will 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
draw()method
override public function draw(graphics:Graphics):void

Draw attachment content. Subclass should overwrite this function to draw own attachment content.

Parameters

graphics:Graphics — the graphics attachment will draw on.