Package | twaver.network.ui |
Class | public class GroupUI |
Inheritance | GroupUI ![]() ![]() ![]() |
Property | Defined By | ||
---|---|---|---|
![]() | alarmAttachment : AlarmAttachment [read-only]
Get alarm attachment of this element ui. | ElementUI | |
![]() | attachments : ICollection [read-only]
Get all attachments as a collection. | ElementUI | |
![]() | bodyRect : Rectangle [read-only]
Get the element body rectangle. | ElementUI | |
![]() | editAttachment : EditAttachment [read-only]
Get edit attachment. | ElementUI | |
![]() | element : IElement [read-only]
Get the element of this element ui. | ElementUI | |
group : Group [read-only]
Get the connected group element of this ui. | GroupUI | ||
![]() | hotSpot : Point
Get hotspot point of this element ui. | ElementUI | |
![]() | iconsAttachment : IconsAttachment [read-only]
Get icon attachment. | ElementUI | |
![]() | labelAttachment : LabelAttachment [read-only]
Get label attachment of this element ui. | ElementUI | |
![]() | network : Network [read-only]
Get network component this element ui displayed on. | ElementUI | |
![]() | node : Node [read-only]
Get connected node element of this node ui. | NodeUI | |
![]() | unionBounds : Rectangle [read-only]
Get the rectangle covers all graphical elements,
including element body and all attachments. | ElementUI | |
![]() | visible : Boolean [override] [write-only]
| NodeUI |
Method | Defined By | ||
---|---|---|---|
Create group ui for this group and display on this network component. | GroupUI | ||
![]() | checkAttachments():void
Check all attachments installed on this element ui. | ElementUI | |
![]() | dispose():void [override]
Dispose all resources used by this element ui. | NodeUI | |
![]() | handlePropertyChange(e:PropertyChangeEvent):void
Called when any element property changed. | ElementUI | |
![]() |
Called when selection changed. | ElementUI | |
![]() | hitsTest(point:Point, tolerance:int):Object | ElementUI | |
![]() | invalidate(checkAttachments:Boolean):void [override]
Invalidate element ui. | NodeUI | |
updateProperties():void [override]
Update all properties from network and element,
redraw this element ui. | GroupUI |
Method | Defined By | ||
---|---|---|---|
![]() | addAttachment(attachment:Attachment):void
Add attachment into this element ui. | ElementUI | |
![]() | checkAlarmAttachment():void
Check, update and display alarm attachment. | ElementUI | |
![]() | checkEditAttachment():void
Check, update and display edit attachment. | ElementUI | |
![]() | checkIconsAttachment():void
Check, update and display icon attachment. | ElementUI | |
![]() | checkLabelAttachment():void
Check, update and display label attachment. | ElementUI | |
![]() | commitProperties():void [override]
| ElementUI | |
![]() | createBodyFilters():Array
Create element body effect filters of this element ui. | ElementUI | |
createBodyRect():Rectangle [override]
Create body bound rectangle. | GroupUI | ||
![]() | createFilters():Array
Create element effect filters of this element ui. | ElementUI | |
![]() | drawBody(g:Graphics):void [override]
Draw element body. | NodeUI | |
drawContent(graphics:Graphics):void [override]
Draw node content on grahics. | GroupUI | ||
![]() | drawDefaultContent(graphics:Graphics):void
Draw default node content. | NodeUI | |
![]() | drawInnerShape(graphics:Graphics):void
Draw inner node shape on graphics. | NodeUI | |
![]() | drawOuterBorder(graphics:Graphics):void
Draw node outline border. | NodeUI | |
![]() | drawSelectBorder(graphics:Graphics):void
Draw node selection border. | NodeUI | |
![]() | drawVectorContent(graphics:Graphics):void
Draw vector image content on graphics. | NodeUI | |
![]() | getDyeColor(styleProp:String):Number
Get dye color of the specified style property. | ElementUI | |
isEditable():Boolean [override]
Check whether this element is editable now. | GroupUI | ||
![]() | measure():void [override]
| ElementUI | |
![]() | removeAttachment(attachment:Attachment):void
Remove specified attachment from this element ui. | ElementUI | |
![]() | updateMeasure():void [override]
Update element measure. | NodeUI |
group | property |
group:Group
[read-only] Get the connected group element of this ui.
public function get group():Group
GroupUI | () | Constructor |
public function GroupUI(network:Network, group:Group)
Create group ui for this group and display on this network component.
Parametersnetwork:Network — network component this group ui displays on
| |
group:Group — the group element of this ui
|
createBodyRect | () | method |
override protected function createBodyRect():Rectangle
Create body bound rectangle.
ReturnsRectangle — 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.
ReturnsBoolean — whether this element is editable now.
|
updateProperties | () | method |
override public function updateProperties():void
Update all properties from network and element, redraw this element ui.