A partial implementation of the IPortConstraintOptimizer interface to minimize the effort required to modify the port assignment after the sequencing phase.

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

Syntax

C#
public abstract class AbstractPortConstraintOptimizer : IPortConstraintOptimizer
Visual Basic
Public MustInherit Class AbstractPortConstraintOptimizer _ Implements IPortConstraintOptimizer

Remarks

A partial implementation of the IPortConstraintOptimizer interface to minimize the effort required to modify the port assignment after the sequencing phase. In this class, the callback method invoked after sequencing temporarily restores all same layer edges which, otherwise, wouldn't be present in the layout graph at this time of the algorithm, then 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.

Inheritance Hierarchy

System..::..Object
  yWorks.yFiles.Layout.Hierarchic.Incremental..::..AbstractPortConstraintOptimizer
    yWorks.yFiles.Layout.Hierarchic.Incremental..::..PCListOptimizer

See Also