| Package | org.un.flex.graphLayout.data |
| Class | public class Edge |
| Implements | IEdge, mx.core.IDataRenderer |
See also
| Property | Defined by | ||
|---|---|---|---|
| data : Object
Access to the associated data object with this
edge, in many cases an XML object is used.
| Edge | ||
| fromNode : INode
[read-only]
returns the source node (fromNode) of the edge.
| Edge | ||
| id : int [read-only]
The id of this edge.
| Edge | ||
| isDirectional : Boolean [read-only]
Indicates if the graph that contains this edge is directional.
| Edge | ||
| node1 : INode
[read-only]
The first node associated with this edge.
| Edge | ||
| node2 : INode
[read-only]
The second node associated with this edge.
| Edge | ||
| toNode : INode
[read-only]
returns the target node (toNode) of the edge.
| Edge | ||
| vedge : IVisualEdge
Access to the associated VisualEdge
of this Edge.
| Edge | ||
| Method | Defined by | ||
|---|---|---|---|
|
constructor for an Edge
| Edge | ||
|
This method returns the other node than the node
given as parameter, so it can be used to follow along
the edge.
| Edge | ||
| data | property |
data:Object [read-write]Access to the associated data object with this edge, in many cases an XML object is used.
Implementation public function get data():Object
public function set data(value:Object):void
See also
| fromNode | property |
fromNode:INode [read-only]returns the source node (fromNode) of the edge. Only available if the graph is directional as otherwise there is no designated source node.
Implementation public function get fromNode():INode
| id | property |
id:int [read-only]The id of this edge.
Implementation public function get id():int
| isDirectional | property |
isDirectional:Boolean [read-only]Indicates if the graph that contains this edge is directional.
Implementation public function get isDirectional():Boolean
| node1 | property |
node1:INode [read-only]The first node associated with this edge.
Implementation public function get node1():INode
| node2 | property |
node2:INode [read-only]The second node associated with this edge.
Implementation public function get node2():INode
| toNode | property |
toNode:INode [read-only]returns the target node (toNode) of the edge. Only available if the graph is directional as otherwise there is no designated target node.
Implementation public function get toNode():INode
| vedge | property |
vedge:IVisualEdge [read-write]Access to the associated VisualEdge of this Edge.
Implementation public function get vedge():IVisualEdge
public function set vedge(value:IVisualEdge):void
| Edge | () | constructor |
public function Edge(graph:IGraph, ve:IVisualEdge, id:int, node1:INode, node2:INode, data:Object)constructor for an Edge
Parametersgraph:IGraph — The graph that this edge is part of
|
|
ve:IVisualEdge — The VisualEdge that this Edge may be associated with
|
|
id:int — The internal id of this new edge
|
|
node1:INode — The first node (or fromNode) of this edge
|
|
node2:INode — The second node (or toNode) of this edge
|
|
data:Object — The potentially associated data object, typically an XML object
|
| othernode | () | method |
public function othernode(node:INode):INodeThis method returns the other node than the node given as parameter, so it can be used to follow along the edge.
Parametersnode:INode — The node that is known (implicit source node)
|
INode —
The node that is unknown (implicit target node)
|