Search this API

y.layout.hierarchic.incremental
Interface PortAllocator

All Known Implementing Classes:
DefaultPortAllocator

public interface PortAllocator

Interface used by HierarchicLayouter during the layout. Instances of this class are responsible for assigning port coordinates to the adjacent edges of each node in the graph.

See Also:
HierarchicLayouter

Method Summary
 void assignPorts(LayoutGraph graph, Layers layers, LayoutDataProvider ldp, ItemFactory itemFactory)
          Called by HierarchicLayouter before the actual node placing takes place (phase three).
 

Method Detail

assignPorts

void assignPorts(LayoutGraph graph,
                 Layers layers,
                 LayoutDataProvider ldp,
                 ItemFactory itemFactory)
Called by HierarchicLayouter before the actual node placing takes place (phase three). This method must assign each edge in the graph a source port and target port coordinate pair.

Parameters:
graph - the graph which contains all the elements
layers - the layers object that contains the elements in the layering
ldp - the LayoutDataProvider that can be queried for the NodeData and EdgeData instances
itemFactory - the ItemFactory that can be used to temporarily modify the graph instance

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