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 constraints (PortConstraint) information via ItemFactory.setTemporaryPortConstraint(y.base.Edge, boolean, y.layout.PortConstraint).


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

Method Detail

optimizeAfterLayering

void optimizeAfterLayering(LayoutGraph graph,
                           Layers layers,
                           LayoutDataProvider ldp,
                           ItemFactory itemFactory)
Called after the layering information has been determined. This method can be used to assign new temporary port constraints for the next phases of the algorithm.

Parameters:
graph - the graph to work on
layers - the layering information
ldp - the implementation which provides access to the NodeData and EdgeData instances
itemFactory - the factory 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)
Called after the sequence of the nodes has been determined. This method can be used to assign new temporary port constraints for the next phases of the algorithm.

Parameters:
graph - the graph to work on
layers - the layering information
ldp - the implementation which provides access to the NodeData and EdgeData instances
itemFactory - the factory to set the temporary port constraints with
See Also:
ItemFactory.setTemporaryPortConstraint(y.base.Edge, boolean, y.layout.PortConstraint)

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