Packagetwaver.network.ui
Classpublic class NodeUI
InheritanceNodeUI Inheritance ElementUI Inheritance mx.core.UIComponent
Subclasses GridUI, GroupUI, RotatableNodeUI, ShapeNodeUI

This node ui responsible for draw node on network canvas.

See also

LinkUI
ElementUI


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
 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
  node : 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
  visible : Boolean
[override] [write-only]
NodeUI
Protected Properties
 PropertyDefined By
 InheritedbodyComponent : UIComponent
ElementUI
  hasDrawImage : 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
  
NodeUI(network:Network, node:Node)
Constructor.
NodeUI
 Inherited
Check all attachments installed on this element ui.
ElementUI
  
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
  
invalidate(checkAttachments:Boolean):void
[override] Invalidate element ui.
NodeUI
  
[override] Update all properties from network and element, redraw this element ui.
NodeUI
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.
NodeUI
 Inherited
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
 Inherited
getDyeColor(styleProp:String):Number
Get dye color of the specified style property.
ElementUI
 Inherited
isEditable():Boolean
Check whether this element is editable now.
ElementUI
 Inherited
measure():void
[override]
ElementUI
 Inherited
removeAttachment(attachment:Attachment):void
Remove specified attachment from this element ui.
ElementUI
  
[override] Update element measure.
NodeUI
Property Detail
hasDrawImageproperty
protected var hasDrawImage:Boolean = false

nodeproperty 
node:Node  [read-only]

Get connected node element of this node ui.


Implementation
    public function get node():Node
visibleproperty 
visible:Boolean  [write-only] [override]


Implementation
    public function set visible(value:Boolean):void
Constructor Detail
NodeUI()Constructor
public function NodeUI(network:Network, node:Node)

Constructor. Create node ui for this node and display on this network.

Parameters
network:Network — the network node will display on
 
node:Node — the node of this node ui.
Method Detail
createBodyRect()method
override protected function createBodyRect():Rectangle

Create body bound rectangle.

Returns
Rectangle — 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.