Search this API

y.layout.hierarchic.incremental
Interface PortConstraintOptimizer

All Known Implementing Classes:
AbstractPortConstraintOptimizer, PCListOptimizer

public interface PortConstraintOptimizer

This interface serves as a callback for HierarchicLayouter after the layering and sequencing phases.

Implementations of this interface may modify the port constraint information via ItemFactory.setTemporaryPortConstraint(y.base.Edge, boolean, y.layout.PortConstraint).

 
Your browser does not support SVG content.

Method Summary
 void optimizeAfterLayering(LayoutGraph graph, Layers layers, LayoutDataProvider ldp, ItemFactory itemFactory)
          Assigns new temporary port constraints after the layering information has been determined.
 void optimizeAfterSequencing(LayoutGraph graph, Layers layers, LayoutDataProvider ldp, ItemFactory itemFactory)
          Assigns new temporary port constraints after the sequence of the nodes has been determined.
 

Method Detail

optimizeAfterLayering

void optimizeAfterLayering(LayoutGraph graph,
                           Layers layers,
                           LayoutDataProvider ldp,
                           ItemFactory itemFactory)
Assigns new temporary port constraints after the layering information has been determined.

Parameters:
graph - the input graph
layers - the given Layers instance
ldp - the LayoutDataProvider containing information about the elements
itemFactory - the ItemFactory to set the temporary port constraints with
See Also:
ItemFactory.setTemporaryPortConstraint(y.base.Edge, boolean, y.layout.PortConstraint)

optimizeAfterSequencing

void optimizeAfterSequencing(LayoutGraph graph,
                             Layers layers,
                             LayoutDataProvider ldp,
                             ItemFactory itemFactory)
Assigns new temporary port constraints after the sequence of the nodes has been determined.

Parameters:
graph - the input graph
layers - the given Layers instance
ldp - the LayoutDataProvider containing information about the elements
itemFactory - the ItemFactory to set the temporary port constraints with
See Also:
ItemFactory.setTemporaryPortConstraint(y.base.Edge, boolean, y.layout.PortConstraint)

© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.