GoDiagram Win Reference
GetNodeDistance Method

Returns the distance between two nodes. The default implementation considers the shortest distance between the two nodes. If the nodes correspond to top-level Go objects, the width and height of the GoObject is factored into the distance between the nodes. If the nodes do not correspond to top-level Go objects, then the nodes implicitly have a width and height of zero, and the distance is calculated.
Syntax
'Declaration
 
Protected Overridable Function GetNodeDistance( _
   ByVal nodeA As GoLayoutForceDirectedNode, _
   ByVal nodeB As GoLayoutForceDirectedNode _
) As Single
protected virtual float GetNodeDistance( 
   GoLayoutForceDirectedNode nodeA,
   GoLayoutForceDirectedNode nodeB
)

Parameters

nodeA
nodeB

Return Value

Returns the distance between two nodes.
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