GoDiagram Web Reference
LinkStraightenWeight Method

The function LinkStraightenWeight returns the weight of the link represented by the GoLayoutLayeredDigraphLink link. This weight is used by the straightening methods to give priority straightening to those links with higher weights. The default implementation gives links between two "real" nodes a weight of 1, links between a "real" node and an "artifical" node a weight of 4, and links between two "artificial" nodes a weight of 8. This function can be overridden to provide "fine-tuning" of the layout.
Syntax
'Declaration
 
Protected Overridable Function LinkStraightenWeight( _
   ByVal link As GoLayoutLayeredDigraphLink _
) As Single
protected virtual float LinkStraightenWeight( 
   GoLayoutLayeredDigraphLink link
)

Parameters

link

Return Value

Returns the weight of the link represented by link
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoLayoutLayeredDigraph Class
GoLayoutLayeredDigraph Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback