Table of Contents

Class TreeNetwork

Namespace
Northwoods.Go.Layouts
Assembly
Northwoods.GoDiagram.WinForms.TreeLayout.dll

This class represents an abstract graph of TreeVertexes and TreeEdges that can be constructed based on the Nodes and Links of a Diagram so that the TreeLayout can operate independently of the diagram until it is time to commit any node positioning or link routing.

public class TreeNetwork : Network<TreeVertex, TreeEdge, TreeLayout>
Inheritance
TreeNetwork
Inherited Members

Remarks

This class inherits from Network<V, E, Y>.

Constructors

TreeNetwork(TreeLayout)

This constructs an empty network associated with a given layout.

public TreeNetwork(TreeLayout layout)

Parameters

layout TreeLayout

Remarks

It is commonplace to call AddParts(IEnumerable<Part>, bool, Predicate<Part>) to build up the network to have the same structure as a Diagram's or Group's nodes and links.

Methods

CreateEdge()

Allocate a new instance of Network<V, E, Y>.Edge.

public override TreeEdge CreateEdge()

Returns

TreeEdge

Remarks

This is overridden in Network subclasses to create instances of subclasses of Network<V, E, Y>.Edge. Please read the Introduction page on Extensions for how to override methods and how to call this base method.

CreateVertex()

Allocate a new instance of Network<V, E, Y>.Vertex.

public override TreeVertex CreateVertex()

Returns

TreeVertex

Remarks

This is overridden in Network subclasses to create instances of subclasses of Network<V, E, Y>.Vertex. Please read the Introduction page on Extensions for how to override methods and how to call this base method.