GoDiagram Win Reference
ElectricalCharge Method

Returns the charge of the point representing the GoLayoutForceDirectedNode node. A node L and a node V are acted upon by a force of magnitude (ElectricalCharge(L) * ElectricalCharge(V)) / (GetNodeDistance(L,V) * GetNodeDistance(L,V)). A node L is acted upon by forces in the X and Y directions of magnitude ElectricalFieldX(L.position) * ElectricalCharge(L) and ElectricalFieldY(L.position) * ElectricalCharge(L).
Syntax
'Declaration
 
Protected Overridable Function ElectricalCharge( _
   ByVal node As GoLayoutForceDirectedNode _
) As Single
protected virtual float ElectricalCharge( 
   GoLayoutForceDirectedNode node
)

Parameters

node

Return Value

Returns the charge of the node, normally the value of DefaultElectricalCharge, unless the value of GoLayoutForceDirectedNode.Charge 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