Class LayoutEdge
An edge represents a link in a LayoutNetwork. It holds layout-specific data for the link.
Modifying a LayoutNetwork or a LayoutVertex or a LayoutEdge does not invalidate the Layout or raise any changed events.
For each kind of layout that uses a LayoutNetwork there is a subclass of LayoutVertex and a subclass of LayoutEdge:
- CircularLayout: CircularVertex and CircularEdge
- ForceDirectedLayout: ForceDirectedVertex and ForceDirectedEdge
- LayeredDigraphLayout: LayeredDigraphVertex and LayeredDigraphEdge
- TreeLayout: TreeVertex and TreeEdge
Constructor Summary Details
Returns | Name | Description |
---|---|---|
LayoutEdge()
|
This constructs an edge that does not know about any Link.
|
Properties Summary Details
Returns | Name | Description |
---|---|---|
fromVertex
|
Gets or sets the LayoutVertex that this edge comes from. More...
Setting this property does not change any LayoutVertex.destinationEdges collection.
|
|
{Link}
|
link
|
|
network
|
Gets or sets the LayoutNetwork that owns this edge. More...
The default value is null.
It is set automatically for you in LayoutNetwork.addEdge.
|
|
toVertex
|
Gets or sets the LayoutVertex that this edge goes to. More...
Setting this property does not change any LayoutVertex.sourceEdges collection.
|
Method Summary Details
Returns | Name | Description |
---|---|---|
commit()
|
Commits the route of this edge to the corresponding Link, if any. More...
By default this does nothing.
Please read the Introduction page on Extensions for how to override methods and how to call this base method.
|
|
getOtherVertex(v)
|
Returns the edge's vertex at the other of this edge from the given vertex. More...
|