Package | twaver.network.ui |
Class | public class IconsAttachment |
Inheritance | IconsAttachment ![]() ![]() |
Method | Defined By | ||
---|---|---|---|
IconsAttachment(elementUI:ElementUI, showInAttachmentCanvas:Boolean = false)
Create icon attachment for the specified element ui. | IconsAttachment | ||
![]() | dispose():void
Call this to dispose all resources used by this attachment. | Attachment | |
draw(graphics:Graphics):void [override]
Draw attachment content. | IconsAttachment | ||
![]() | setMatrix(matrix:Matrix):void
Set attachment transform matrix. | Attachment | |
![]() | updateAlpha():void
Update attachment transparency. | Attachment | |
![]() | updateProperties():void
Update element attachment properties. | Attachment |
IconsAttachment | () | Constructor |
public function IconsAttachment(elementUI:ElementUI, showInAttachmentCanvas:Boolean = false)
Create icon attachment for the specified element ui.
ParameterselementUI: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.
|
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.
|