( a feature of FlowChartX Pro edition)
Implements a flowchart layout algorithm.
VB6
![]() |
---|
Public Class DecisionLayout |
C++
![]() |
---|
class DecisionLayout |
This algorithm arranges simple flowcharts consisting of decision boxes with up to three outgoing links per node and activity boxes with a single outgoing link per node. The nodes are arranged in columns and rows, whose distance depends on the HorizontalPadding and VerticalPadding property values. When links share the same row or column, they are placed at a distance specified via LinkPadding.
The layout arranges nodes recursively starting from StartNode. If StartNode is not specified, the algorithm selects the root of the deepest branch of the graph's spanning tree as start node.
The overall orientation of the layout can be set via the Orientation property. There is no distinction made between yes/no links, and the node sides by which links are aligned depend only on the order of links in OutgoingArrows collection. If you have a preferred position for links depending on their yes/no type, make sure the OutgoingArrows collections of nodes are sorted by links' logical values.