Called after the sequence of the nodes has been determined to assign new temporary port constraints.

Namespace: yWorks.yFiles.Layout.Hierarchic.Incremental
Assembly: yWorks.yFilesSilverlight.Algorithms (in yWorks.yFilesSilverlight.Algorithms.dll) Version: 2.4.0.0

Syntax

C#
public virtual void OptimizeAfterSequencing( LayoutGraph graph, ILayers layers, ILayoutDataProvider ldp, IItemFactory itemFactory )
Visual Basic
Public Overridable Sub OptimizeAfterSequencing ( _ graph As LayoutGraph, _ layers As ILayers, _ ldp As ILayoutDataProvider, _ itemFactory As IItemFactory _ )

Parameters

graph
Type: yWorks.yFiles.Layout..::..LayoutGraph
the graph to work on.
layers
Type: yWorks.yFiles.Layout.Hierarchic.Incremental..::..ILayers
the layering information.
ldp
Type: yWorks.yFiles.Layout.Hierarchic.Incremental..::..ILayoutDataProvider
the LayoutDataProvider which provides access to the INodeData and IEdgeData .
itemFactory
Type: yWorks.yFiles.Layout.Hierarchic.Incremental..::..IItemFactory
the factory which can set the temporary port constraints.

Implements

IPortConstraintOptimizer..::..OptimizeAfterSequencing(LayoutGraph, ILayers, ILayoutDataProvider, IItemFactory)

Remarks

Called after the sequence of the nodes has been determined to assign new temporary port constraints. This method inserts the same layer strucutres , invokes the hook in which the custom port assignment should be done, and finally takes care to restore the original state of the layout graph by removing the temporary edges.

See Also