Search this API

y.layout
Interface PartitionLayouter.PartitionPlacer

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

public static interface PartitionLayouter.PartitionPlacer

Implementations of this interface are responsible for arranging the graph partitions. Arranging a graph partition usually involves to apply a coordinate translation to all elements belonging 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.

Parameters:
graph - the input graph
partitionIDDP - the partition id for each node in the graph.
interEdgeDP - holds a boolean value for each edge of the graph indicating if the edge is an inter-edge or not. An inter-edge is an edge that connects nodes that do not belong to the same partition.

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