GoDiagram Win Reference
SpringStiffness Method

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

Parameters

link

Return Value

Returns the stiffness of the spring representing link, normally the value of DefaultSpringStiffness, unless the value of GoLayoutForceDirectedLink.Stiffness had already been set, in which case it just returns that value.
Remarks
Very small positive numbers are normal. Values larger than that tend to cause "jittery" behavior that makes it hard or impossible to settle down, since no stable state can be found.
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