GoDiagram Win Reference
MedianStraighten Method

Adjusts the columns of nodes within the unfixedLayer in order to move nodes towards their median columns. The direction argument indicates which of the adjacent layers should be taken into consideration when computing the median column. The idea is shift nodes to the left and to the right to move nodes towards their median columns, ensuring that no two nodes have overlapping "allocations" of columns. Returns true if some change was made to the layer.
Syntax
'Declaration
 
Protected Overridable Function MedianStraighten( _
   ByVal unfixedLayer As Integer, _
   ByVal direction As Integer _
) As Boolean
protected virtual bool MedianStraighten( 
   int unfixedLayer,
   int direction
)

Parameters

unfixedLayer
direction

Return Value

Returns true if some change was made to the layer and false otherwise.
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

GoLayoutLayeredDigraph Class
GoLayoutLayeredDigraph Members

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback