Search this API

y.layout
Interface PartitionLayouter.PartitionPlacer

All Known Implementing Classes:
PartitionLayouter.ComponentPartitionPlacer
Enclosing class:
PartitionLayouter

public static interface PartitionLayouter.PartitionPlacer

A PartitionLayouter.PartitionPlacer is responsible for arranging the graph partitions. Arranging a graph partition usually involves applying a coordinate translation to all elements that belong to the partition in order to generate a non-overlapping node arrangement.

 

Method Summary
 void placePartitions(LayoutGraph graph, DataProvider partitionIDDP, DataProvider interEdgeDP)
          Arranges the graph while taking partition IDs and inter-edge information into account.
 

Method Detail

placePartitions

void placePartitions(LayoutGraph graph,
                     DataProvider partitionIDDP,
                     DataProvider interEdgeDP)
Arranges the graph while taking partition IDs and inter-edge information into account. Edges which connect nodes that belong to two different partitions are called inter-edges

Parameters:
graph - the input graph
partitionIDDP - the partition ID for each node in the graph
interEdgeDP - the map which marks inter-edges

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