Package | twaver.network.ui |
Class | public class NodeUI |
Inheritance | NodeUI ![]() ![]() |
Subclasses | GridUI, GroupUI, RotatableNodeUI, ShapeNodeUI |
See also
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 | |
![]() | 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 |
Property | Defined By | ||
---|---|---|---|
![]() | bodyComponent : UIComponent | ElementUI | |
hasDrawImage : Boolean = false | NodeUI | ||
![]() | innerColor : Object [read-only]
Get element inner color. | ElementUI | |
![]() | outerColor : Object [read-only]
Get element outline color. | ElementUI |
Method | Defined By | ||
---|---|---|---|
Constructor. | NodeUI | ||
![]() | 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. | NodeUI |
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. | NodeUI | ||
![]() | createFilters():Array
Create element effect filters of this element ui. | ElementUI | |
drawBody(g:Graphics):void [override]
Draw element body. | NodeUI | ||
drawContent(graphics:Graphics):void
Draw node content on grahics. | NodeUI | ||
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
Check whether this element is editable now. | ElementUI | |
![]() | measure():void [override]
| ElementUI | |
![]() | removeAttachment(attachment:Attachment):void
Remove specified attachment from this element ui. | ElementUI | |
updateMeasure():void [override]
Update element measure. | NodeUI |
hasDrawImage | property |
protected var hasDrawImage:Boolean = false
node | property |
node:Node
[read-only] Get connected node element of this node ui.
public function get node():Node
visible | property |
visible:Boolean
[write-only] [override]
public function set visible(value:Boolean):void
NodeUI | () | Constructor |
public function NodeUI(network:Network, node:Node)
Constructor. Create node ui for this node and display on this network.
Parametersnetwork:Network — the network node will display on
| |
node:Node — the node of this node ui.
|
createBodyRect | () | method |
override protected function createBodyRect():Rectangle
Create body bound rectangle.
ReturnsRectangle — body bound rectangle.
|
dispose | () | method |
override public function dispose():void
Dispose all resources used by this element ui.
drawBody | () | method |
override protected function drawBody(g:Graphics):void
Draw element body.
Parameters
g:Graphics — the graphic draw body on.
|
drawContent | () | method |
protected function drawContent(graphics:Graphics):void
Draw node content on grahics.
Parameters
graphics:Graphics — the graphics to draw node content on.
|
drawDefaultContent | () | method |
protected function drawDefaultContent(graphics:Graphics):void
Draw default node content.
Parameters
graphics:Graphics — the graphics to draw content on.
|
drawInnerShape | () | method |
protected function drawInnerShape(graphics:Graphics):void
Draw inner node shape on graphics.
Parameters
graphics:Graphics — graphics to draw node inner shape on.
|
drawOuterBorder | () | method |
protected function drawOuterBorder(graphics:Graphics):void
Draw node outline border.
Parameters
graphics:Graphics — the graphics to draw
|
drawSelectBorder | () | method |
protected function drawSelectBorder(graphics:Graphics):void
Draw node selection border.
Parameters
graphics:Graphics — graphics to draw.
|
drawVectorContent | () | method |
protected function drawVectorContent(graphics:Graphics):void
Draw vector image content on graphics.
Parameters
graphics:Graphics — the graphics vector image to draw on
|
invalidate | () | method |
override public function invalidate(checkAttachments:Boolean):void
Invalidate element ui.
Parameters
checkAttachments:Boolean — whether need to recheck
all attachements.
|
updateMeasure | () | method |
override protected function updateMeasure():void
Update element measure.
updateProperties | () | method |
override public function updateProperties():void
Update all properties from network and element, redraw this element ui.