Northwoods.Go.Layout Assembly > Northwoods.Go.Layout Namespace > GoLayoutLayeredDigraph Class : ShiftBendStraighten Method |
abs((U.column + L.portFromColOffset) - (V.column + L.portToColOffset)) * LinkStraightenWeight(L)
The LinkStraightenWeight attempts to give higher priority to links between "artificial" nodes; i.e., long links in the final layout will be straighter. The idea is shift nodes to the left and to the right to reduce the bends ensuring that no two nodes have overlapping "allocations" of columns. Return true if some change was made to the layer.'Declaration Protected Overridable Function ShiftBendStraighten( _ ByVal unfixedLayer As Integer, _ ByVal direction As Integer _ ) As Boolean
protected virtual bool ShiftBendStraighten( int unfixedLayer, int direction )
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