GoDiagram Win Reference
SpringLength Method

Returns the length of the spring representing the GoLayoutForceDirectedLink link. The to and from nodes of a link L are acted upon by a force of magnitude SpringStiffness(L) * (GetNodeDistance(L.from, L.to) - SpringLength(L)).
Syntax
'Declaration
 
Protected Overridable Function SpringLength( _
   ByVal link As GoLayoutForceDirectedLink _
) As Single
protected virtual float SpringLength( 
   GoLayoutForceDirectedLink link
)

Parameters

link

Return Value

Returns the length of the spring representing link, normally the value of DefaultSpringLength, unless the value of GoLayoutForceDirectedLink.Length had already been set, in which case it just returns that value.
Remarks
If your nodes are large, you may need to increase this value, so that many nodes aren't forced to be packed in close to each other.
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

GoLayoutForceDirected Class
GoLayoutForceDirected Members

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback