Package | twaver |
Class | public class Bus |
Inheritance | Bus ![]() ![]() ![]() ![]() ![]() ![]() |
ShapeNode
that represent
a computer network with a bus layout. The bus object has
a orthogonal polyline and can be resized automatically
when network canvas size changed. Nodes can connect to
a bus object with a link. Bus provides the ability to show
a bus network topology with a set of client nodes connected
via a shared communications line.
Check TWaver Flex demo source code to know more how to use bus object.
Method | Defined By | ||
---|---|---|---|
Bus(id:Object = null)
Constructor. | Bus | ||
![]() |
Add a child data object for this data. | Data | |
![]() | addPoint(point:Point):void
Add a point into this shape node. | ShapeNode | |
![]() | addPointAt(point:Point, index:int):void
Add a new point into this shape in the specified
location. | ShapeNode | |
![]() | addPropertyChangeListener(listener:Function, priority:int = 0, useWeakReference:Boolean = false):void
Add a property change listener to this data to monitoring property
change event. | Data | |
![]() | clearChildren():Boolean
Clear all children from this data. | Data | |
![]() | deserializeXML(serializer:XMLSerializer, xml:XML):void [override]
inheritDoc
| Element | |
dispatchPointsChangeEvent():void [override]
Dispatch change event to all installed listeners
when any point is changed. | Bus | ||
![]() | dispatchPropertyChangeEvent(property:String, oldValue:Object, newValue:Object):Boolean
Dispatch property change event to all installed listeners. | Data | |
![]() | getChildAt(index:int):IData
Get child as specified index location. | Data | |
![]() | getClient(clientProp:String):*
Get specified client property value. | Data | |
![]() | getPropertyValue(property:String):Object [override]
Get an user defined property on this data. | Element | |
![]() | getStyle(styleProp:String, returnDefaultIfNull:Boolean = true):*
Get the specified style property value. | Element | |
![]() | hasAgentLinks():Boolean
Check whether this node has agential links. | Node | |
![]() | hasOwnProperty(name:String):Boolean
Whether this data has specified property. | Data | |
![]() | isAdjustedToBottom():Boolean
Check whether this element has been adjusted to bottom. | Element | |
![]() | isDescendantOf(data:IData):Boolean
Check whether this data is a descendant of the specified data object. | Data | |
![]() |
Check whether the specified node is my host or on
my host chain. | Follower | |
![]() | isLoopedHostOn(follower:Follower):Boolean
Check whether specified follower is on a looped host chain. | Follower | |
![]() | isParentOf(data:IData):Boolean
Check whether this data is the parent of specified data. | Data | |
![]() | isRelatedTo(data:IData):Boolean
Check whether this data has descendant relationship with the specified data. | Data | |
![]() | removeChild(child:IData):Boolean
Remove the specified child object. | Data | |
![]() | removePoint(point:Point):void
Remove a point from this shape path. | ShapeNode | |
![]() | removePointAt(index:int):void
Remove the point at specified location. | ShapeNode | |
![]() | removePropertyChangeListener(listener:Function):void
Remove the specified property change listener. | Data | |
![]() | [override]
inheritDoc
| ShapeNode | |
![]() | setCenterLocation(x:Number, y:Number):void
Set a new location for this node's center point. | Node | |
![]() |
Set client property for this data. | Data | |
![]() | setLocation(x:Number, y:Number):void
Set a new location for this node. | Node | |
![]() | setPointAt(point:Point, index:int):void
Update the point at specified index location. | ShapeNode | |
![]() | setPropertyValue(property:String, value:Object):void [override]
Set an user defined property on this data. | Element | |
![]() | setSize(width:Number, height:Number):void
Set node size. | Node | |
![]() |
Set a style for this element. | Element | |
![]() | toChildren(matchFunction:Function = null):ICollection
Iterate children collection by given callback function. | Data | |
![]() | toString():String [override]
| Data | |
![]() | translate(dx:Number, dy:Number):void
Translate node location to specified offset. | Node |
Bus | () | Constructor |
public function Bus(id:Object = null)
Constructor.
Parametersid:Object (default = null ) — bus element id.
|
dispatchPointsChangeEvent | () | method |
override public function dispatchPointsChangeEvent():void
Dispatch change event to all installed listeners when any point is changed. All installed listeners will be notified when any points of this shape is changed.