PathNode
ReferencesA single node in a recursive path structure. This is an alternate way to represent multiple paths, particularly handy for diagramming purposes.
Constructors
Properties
DiagramColour
#public Color DiagramColour { get; set; }
Property for storing the diagram colour of this node.
Leaf
#Gets whether this node represents a full path. This property might change over time from false to true, as more paths are inserted into a node-graph.
Indexers
Methods
Insert
#Insert a new path into this node. Full paths should only be inserted into the root node.
Parameters:
| fullPath (Path) |
ResolveColour
#public void ResolveColour()
Resolve the colour of this node based on the average of all child nodes. Before calling this method, ensure that all Leaf nodes in the entire hierarchy have had their colour assigned.