Search this API

y.layout.seriesparallel
Interface PortAssignment

All Known Implementing Classes:
DefaultPortAssignment

public interface PortAssignment

A PortAssignment is used by SeriesParallelLayouter for determining the locations of the edges' ports at their incident nodes.

 

Method Summary
 void assignPorts(LayoutGraph graph, Node node)
          Assigns both the incoming edges' target ports as well as all source ports for the outgoing edges.
 

Method Detail

assignPorts

void assignPorts(LayoutGraph graph,
                 Node node)
Assigns both the incoming edges' target ports as well as all source ports for the outgoing edges. Outgoing edges are sorted according to the specified out-edge comparator from left to right and incoming edges are in the order of the subgraphs they are coming from.

This method is called by SeriesParallelLayouter before the actual layout of the graph takes place.

Parameters:
graph - the graph instance the node is part of
node - the node whose incident edges' ports are assigned
See Also:
SeriesParallelLayouter.OUT_EDGE_COMPARATOR_DPKEY, SeriesParallelLayouter.setDefaultOutEdgeComparator(java.util.Comparator)

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