Packagetwaver.network.ui
Classpublic class GroupUI
InheritanceGroupUI Inheritance NodeUI Inheritance ElementUI Inheritance mx.core.UIComponent

Group ui used to draw group element on network canvas. Group ui extends from node ui. When group is closed, it will looks like a node and all children are vanished. When it expanded, all children are visible and the group will draw a shape to cover all children nodes.



Public Properties
 PropertyDefined By
 InheritedalarmAttachment : AlarmAttachment
[read-only] Get alarm attachment of this element ui.
ElementUI
 Inheritedattachments : ICollection
[read-only] Get all attachments as a collection.
ElementUI
 InheritedbodyRect : Rectangle
[read-only] Get the element body rectangle.
ElementUI
 InheritededitAttachment : EditAttachment
[read-only] Get edit attachment.
ElementUI
 Inheritedelement : IElement
[read-only] Get the element of this element ui.
ElementUI
  group : Group
[read-only] Get the connected group element of this ui.
GroupUI
 InheritedhotSpot : Point
Get hotspot point of this element ui.
ElementUI
 InheritediconsAttachment : IconsAttachment
[read-only] Get icon attachment.
ElementUI
 InheritedlabelAttachment : LabelAttachment
[read-only] Get label attachment of this element ui.
ElementUI
 Inheritednetwork : Network
[read-only] Get network component this element ui displayed on.
ElementUI
 Inheritednode : Node
[read-only] Get connected node element of this node ui.
NodeUI
 InheritedunionBounds : Rectangle
[read-only] Get the rectangle covers all graphical elements, including element body and all attachments.
ElementUI
 Inheritedvisible : Boolean
[override] [write-only]
NodeUI
Protected Properties
 PropertyDefined By
 InheritedbodyComponent : UIComponent
ElementUI
 InheritedhasDrawImage : Boolean = false
NodeUI
 InheritedinnerColor : Object
[read-only] Get element inner color.
ElementUI
 InheritedouterColor : Object
[read-only] Get element outline color.
ElementUI
Public Methods
 MethodDefined By
  
GroupUI(network:Network, group:Group)
Create group ui for this group and display on this network component.
GroupUI
 Inherited
Check all attachments installed on this element ui.
ElementUI
 Inherited
dispose():void
[override] Dispose all resources used by this element ui.
NodeUI
 Inherited
handlePropertyChange(e:PropertyChangeEvent):void
Called when any element property changed.
ElementUI
 Inherited
Called when selection changed.
ElementUI
 Inherited
hitsTest(point:Point, tolerance:int):Object
ElementUI
 Inherited
invalidate(checkAttachments:Boolean):void
[override] Invalidate element ui.
NodeUI
  
[override] Update all properties from network and element, redraw this element ui.
GroupUI
Protected Methods
 MethodDefined By
 Inherited
addAttachment(attachment:Attachment):void
Add attachment into this element ui.
ElementUI
 Inherited
Check, update and display alarm attachment.
ElementUI
 Inherited
Check, update and display edit attachment.
ElementUI
 Inherited
Check, update and display icon attachment.
ElementUI
 Inherited
Check, update and display label attachment.
ElementUI
 Inherited
[override]
ElementUI
 Inherited
Create element body effect filters of this element ui.
ElementUI
  
createBodyRect():Rectangle
[override] Create body bound rectangle.
GroupUI
 Inherited
Create element effect filters of this element ui.
ElementUI
 Inherited
drawBody(g:Graphics):void
[override] Draw element body.
NodeUI
  
drawContent(graphics:Graphics):void
[override] Draw node content on grahics.
GroupUI
 Inherited
drawDefaultContent(graphics:Graphics):void
Draw default node content.
NodeUI
 Inherited
drawInnerShape(graphics:Graphics):void
Draw inner node shape on graphics.
NodeUI
 Inherited
drawOuterBorder(graphics:Graphics):void
Draw node outline border.
NodeUI
 Inherited
drawSelectBorder(graphics:Graphics):void
Draw node selection border.
NodeUI
 Inherited
drawVectorContent(graphics:Graphics):void
Draw vector image content on graphics.
NodeUI
 Inherited
getDyeColor(styleProp:String):Number
Get dye color of the specified style property.
ElementUI
  
isEditable():Boolean
[override] Check whether this element is editable now.
GroupUI
 Inherited
measure():void
[override]
ElementUI
 Inherited
removeAttachment(attachment:Attachment):void
Remove specified attachment from this element ui.
ElementUI
 Inherited
[override] Update element measure.
NodeUI
Property Detail
groupproperty
group:Group  [read-only]

Get the connected group element of this ui.


Implementation
    public function get group():Group
Constructor Detail
GroupUI()Constructor
public function GroupUI(network:Network, group:Group)

Create group ui for this group and display on this network component.

Parameters
network:Network — network component this group ui displays on
 
group:Group — the group element of this ui
Method Detail
createBodyRect()method
override protected function createBodyRect():Rectangle

Create body bound rectangle.

Returns
Rectangle — body bound rectangle.
drawContent()method 
override protected function drawContent(graphics:Graphics):void

Draw node content on grahics.

Parameters

graphics:Graphics — the graphics to draw node content on.

isEditable()method 
override protected function isEditable():Boolean

Check whether this element is editable now.

Returns
Boolean — whether this element is editable now.
updateProperties()method 
override public function updateProperties():void

Update all properties from network and element, redraw this element ui.