documentationfor yFiles for HTML 2.6

PortConstraintOptimizerBase

This class is an abstract implementation of the IPortConstraintOptimizer interface that minimizes the effort required to modify the port assignment after the sequencing phase of hierarchic layout algorithm.

Inheritance Hierarchy
PortConstraintOptimizerBase
Implemented Interfaces

Remarks

The callback method invoked after sequencing performs the following three steps:
  1. Restores temporarily all same-layer edges which are not currently present in the layout graph at this time of the layout algorithm.
  2. Invokes the hook in which the custom port assignment should be done.
  3. Restores the original state of the layout graph by removing the temporary same-layer edges added in Step 1.

Default Values of Properties

layoutOrientationTOP_TO_BOTTOMThe layout orientation is top-to-bottom.
mirrorModeBOTTOM_TO_TOPLayout orientation will be mirrored at the y-axis.

Type Details

yfiles module
layout-hierarchic
yfiles-umd modules
layout-familytree, layout-hierarchic, layout-radial, layout
Legacy UMD name
yfiles.hierarchic.PortConstraintOptimizerBase

Constructors

Properties

Methods