public interface IPortConstraintOptimizer
HierarchicLayoutCore after the layering and sequencing phases.
Implementations of this interface may modify the port constraint
information via
IItemFactory.setTemporaryPortConstraint(com.yworks.yfiles.algorithms.Edge, boolean, com.yworks.yfiles.layout.PortConstraint).
| Modifier and Type | Method and Description |
|---|---|
void |
optimizeAfterLayering(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp,
IItemFactory itemFactory)
Assigns new temporary port constraints after the layering information has been determined.
|
void |
optimizeAfterSequencing(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp,
IItemFactory itemFactory)
Assigns new temporary port constraints after the sequence of the nodes has been determined.
|
void optimizeAfterLayering(LayoutGraph graph, ILayers layers, ILayoutDataProvider ldp, IItemFactory itemFactory)
graph - the input graphlayers - the given ILayers instanceldp - the ILayoutDataProvider containing information about the elementsitemFactory - the IItemFactory to set the temporary port constraints withIItemFactory.setTemporaryPortConstraint(com.yworks.yfiles.algorithms.Edge, boolean, com.yworks.yfiles.layout.PortConstraint)void optimizeAfterSequencing(LayoutGraph graph, ILayers layers, ILayoutDataProvider ldp, IItemFactory itemFactory)
graph - the input graphlayers - the given ILayers instanceldp - the ILayoutDataProvider containing information about the elementsitemFactory - the IItemFactory to set the temporary port constraints withIItemFactory.setTemporaryPortConstraint(com.yworks.yfiles.algorithms.Edge, boolean, com.yworks.yfiles.layout.PortConstraint)