GoDiagram Win Reference
GravitationalMass Method

The function GravitationalMass returns the mass of the point representing the GoLayoutForceDirectedNode node. A node L is acted upon by forces in the X and Y directions of magnitude GravitationalFieldX(L.position) * GravitationalMass(L) and GravitationalFieldY(L.position) * GravitationalMass(L).
Syntax
'Declaration
 
Protected Overridable Function GravitationalMass( _
   ByVal node As GoLayoutForceDirectedNode _
) As Single
protected virtual float GravitationalMass( 
   GoLayoutForceDirectedNode node
)

Parameters

node

Return Value

Returns the mass of node, normally the value of DefaultGravitationalMass, unless the value of GoLayoutForceDirectedNode.Mass had already been set, in which case it just returns that value.
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