Search this API

y.layout.hierarchic.incremental
Interface PortAllocator

All Known Implementing Classes:
DefaultPortAllocator

public interface PortAllocator

This interface is responsible for assigning port coordinates to the adjacent edges of each node of the graph.

PortAllocator is used by HierarchicLayouter after the sequencing phase.

See Also:
HierarchicLayouter
 
Your browser does not support SVG content.

Method Summary
 void assignPorts(LayoutGraph graph, Layers layers, LayoutDataProvider ldp, ItemFactory itemFactory)
          Assigns to each edge of the graph a source port and target port coordinate pair.
 

Method Detail

assignPorts

void assignPorts(LayoutGraph graph,
                 Layers layers,
                 LayoutDataProvider ldp,
                 ItemFactory itemFactory)
Assigns to each edge of the graph a source port and target port coordinate pair.

This method is called by HierarchicLayouter after the sequencing phase.

Parameters:
graph - the input graph
layers - the given Layers instance containing the elements in the layering
ldp - the LayoutDataProvider containing layering information about the nodes and edges of the graph
itemFactory - the ItemFactory used temporarily for modifying the graph instance

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