Draws one or more connection lines between several nodes.

Namespace: TreeLayoutHelper.FlowLayout
Assembly: TreeLayoutHelper (in TreeLayoutHelper.dll) Version: 1.1.0.0 (1.1.0.0)

Syntax

C#
void DrawFlowConnections(
	FlowLayoutModel<TNode> model,
	NodeWithBounds<TNode>[] sources,
	NodeWithBounds<TNode>[] destinations,
	TNode connection
)
Visual Basic
Sub DrawFlowConnections ( _
	model As FlowLayoutModel(Of TNode), _
	sources As NodeWithBounds(Of TNode)(), _
	destinations As NodeWithBounds(Of TNode)(), _
	connection As TNode _
)
Visual C++
void DrawFlowConnections(
	FlowLayoutModel<TNode>^ model, 
	array<NodeWithBounds<TNode>>^ sources, 
	array<NodeWithBounds<TNode>>^ destinations, 
	TNode connection
)
J#
void DrawFlowConnections(
	FlowLayoutModel<TNode> model,
	NodeWithBounds<TNode>[] sources,
	NodeWithBounds<TNode>[] destinations,
	TNode connection
)
JScript
function DrawFlowConnections(
	model : FlowLayoutModel<TNode>, 
	sources : NodeWithBounds<TNode>[], 
	destinations : NodeWithBounds<TNode>[], 
	connection : TNode
)
JavaScript
function DrawFlowConnections(model, sources, destinations, connection);

Parameters

model
Type: TreeLayoutHelper.FlowLayout..::..FlowLayoutModel<(Of <(<'TNode>)>)>
The flow graph model.
sources
Type: array<TreeLayoutHelper..::..NodeWithBounds<(Of <(<'TNode>)>)>>[]()[][]
The source nodes.
destinations
Type: array<TreeLayoutHelper..::..NodeWithBounds<(Of <(<'TNode>)>)>>[]()[][]
The destination nodes.
connection
Type: TNode
The node that represents the connection.

Remarks

This method draws connections defined by what is usually a sequence node. Usually, this will be exactly one connection line between two nodes. However, there are cases where either there is more than one source node or more than one destination node. A very special but nonetheless possible case is when there are several source nodes and several destination nodes at the same time. The same applies to the situation that the set of source nodes or the set of destination nodes is empty, though this should not normally occur in a properly structured graph.

The node that provides the connection, which is passed in the connection argument, is usually a sequence node. Alternatively, it can be a parallel node when the transformer required a junction node to be shown in the AddJunctionNodes(TNode, Boolean%, Boolean%) method.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionAny of the arguments is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also