Class SpiralNetwork
This class represents an abstract graph of SpiralVertexes and SpiralEdges that can be constructed based on the Nodes and Links of a Diagram so that the SpiralLayout can operate independently of the diagram until it is time to commit any node positioning or link routing.
Namespace: Northwoods.Go.Layouts.Extensions
Assembly: SpiralWinForms.dll
Syntax
public class SpiralNetwork : Network<SpiralVertex, SpiralEdge, SpiralLayout>
Remarks
This class inherits from Network<V, E, Y>.
Constructors
SpiralNetwork(SpiralLayout)
This constructs an empty network associated with a given layout.
Declaration
public SpiralNetwork(SpiralLayout layout)
Parameters
Type | Name | Description |
---|---|---|
SpiralLayout | layout |
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.
Declaration
public override SpiralEdge CreateEdge()
Returns
Type | Description |
---|---|
SpiralEdge |
Overrides
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.
Declaration
public override SpiralVertex CreateVertex()
Returns
Type | Description |
---|---|
SpiralVertex |
Overrides
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.