| Package | org.un.flex.graphLayout.visual |
| Interface | public interface IVisualNode extends IVisualItem |
| Implementors | VisualNode |
| Property | Defined by | ||
|---|---|---|---|
| centered : Boolean
Property to indicate if the node should be
centered around it's geometrical center (i.e.
| IVisualNode | ||
![]() | data : Object
Access to the items data object.
| IVisualItem | |
![]() | id : int
Access to the item's unique id.
| IVisualItem | |
| isVisible : Boolean
Method to specify if the current Visual node
is considered to be visible or not.
| IVisualNode | ||
| moveable : Boolean [read-only]
This specifies if a node is moveable.
| IVisualNode | ||
| node : INode
[read-only]
Property for access to the associated graph node
of this visual node.
| IVisualNode | ||
| orientAngle : Number
A layouter can optionally set an orientation angle
paramter in the node.
| IVisualNode | ||
| rawview : UIComponent [read-only]
Same as 'view', only exists as a legacy function
and will vanish eventually.
| IVisualNode | ||
![]() | vgraph : IVisualGraph
Access to the associated VisualGraph of this item.
| IVisualItem | |
| view : UIComponent
Access to a visual node's UIComponent (or view).
| IVisualNode | ||
| viewX : Number
Convenient access to the X coordinate of a node's
view (or UIComponent).
| IVisualNode | ||
| viewY : Number
Convenient access to the Y coordinate of a node's
view (or UIComponent).
| IVisualNode | ||
| x : Number
Access to the target X coordinate of this
VisualNode.
| IVisualNode | ||
| y : Number
Access to the target Y coordinate of this
VisualNode.
| IVisualNode | ||
| Method | Defined by | ||
|---|---|---|---|
|
commit():void
This method set the coordinates of the visual node's
view to the internal coordinates of the visual node,
thus effectively placing the view at the point where the
visual coordinates point to.
| IVisualNode | ||
|
refresh():void
This method updates the internal coordinates of the
visual node with the current coordinates of the visual node's
view (i.e.
| IVisualNode | ||
| centered | property |
centered:Boolean [read-write]Property to indicate if the node should be centered around it's geometrical center (i.e. the center of it's view) or if it's origin would be the usual upper left corner. The value will be applied by the commit() and refresh() methods.
Implementation public function get centered():Boolean
public function set centered(value:Boolean):void
See also
| isVisible | property |
isVisible:Boolean [read-write]Method to specify if the current Visual node is considered to be visible or not. This is important for most layouters.
Implementation public function get isVisible():Boolean
public function set isVisible(value:Boolean):void
| moveable | property |
moveable:Boolean [read-only]This specifies if a node is moveable. This is currently not used by any layouter and thus not effective. Do not use for now!
Implementation public function get moveable():Boolean
| node | property |
node:INode [read-only]Property for access to the associated graph node of this visual node.
Implementation public function get node():INode
| orientAngle | property |
orientAngle:Number [read-write]A layouter can optionally set an orientation angle paramter in the node. Right now we hardcode this as one single parameter. If we need more in the future, we can replace this by a hash with multiple keys. This parameter may be accessed by the nodeRenderer for instance. The value is in degrees.
Implementation public function get orientAngle():Number
public function set orientAngle(value:Number):void
| rawview | property |
rawview:UIComponent [read-only]Same as 'view', only exists as a legacy function and will vanish eventually.
Implementation public function get rawview():UIComponent
See also
| view | property |
view:UIComponent [read-write]Access to a visual node's UIComponent (or view).
Implementation public function get view():UIComponent
public function set view(value:UIComponent):void
| viewX | property |
viewX:Number [read-write]Convenient access to the X coordinate of a node's view (or UIComponent). This method accesses the view property of this object in, thus creating the view on demand as well.
Implementation public function get viewX():Number
public function set viewX(value:Number):void
See also
| viewY | property |
viewY:Number [read-write]Convenient access to the Y coordinate of a node's view (or UIComponent). This method accesses the view property of this object in, thus creating the view on demand as well.
Implementation public function get viewY():Number
public function set viewY(value:Number):void
See also
| x | property |
x:Number [read-write]Access to the target X coordinate of this VisualNode. The commit() method will actually apply these coordinates in the node's UIComponent.
Implementation public function get x():Number
public function set x(value:Number):void
See also
| y | property |
y:Number [read-write]Access to the target Y coordinate of this VisualNode. The commit() method will actually apply these coordinates in the node's UIComponent.
Implementation public function get y():Number
public function set y(value:Number):void
See also
| commit | () | method |
public function commit():voidThis method set the coordinates of the visual node's view to the internal coordinates of the visual node, thus effectively placing the view at the point where the visual coordinates point to.
| refresh | () | method |
public function refresh():voidThis method updates the internal coordinates of the visual node with the current coordinates of the visual node's view (i.e. it's current real coordinates).