Search this API

y.layout
Class PartitionLayouter.ComponentPartitionPlacer

java.lang.Object
  extended by y.layout.PartitionLayouter.ComponentPartitionPlacer
All Implemented Interfaces:
PartitionLayouter.PartitionPlacer
Enclosing class:
PartitionLayouter

public static class PartitionLayouter.ComponentPartitionPlacer
extends Object
implements PartitionLayouter.PartitionPlacer

PartitionPlacer implementation that uses ComponentLayouter to place the partitions.


Constructor Summary
PartitionLayouter.ComponentPartitionPlacer()
          Creates a new instance of this class.
 
Method Summary
 ComponentLayouter getComponentLayouter()
          Returns the ComponentLayouter instance used to place the graph partitions.
 void placePartitions(LayoutGraph graph, DataProvider clusterIDDP, DataProvider interEdgeDP)
          Arranges the graph while taking partition ids and inter-edge information into account.
 void setComponentLayouter(ComponentLayouter componentLayouter)
          Sets the ComponentLayouter instance used to place the graph partitions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartitionLayouter.ComponentPartitionPlacer

public PartitionLayouter.ComponentPartitionPlacer()
Creates a new instance of this class.

Method Detail

placePartitions

public void placePartitions(LayoutGraph graph,
                            DataProvider clusterIDDP,
                            DataProvider interEdgeDP)
Description copied from interface: PartitionLayouter.PartitionPlacer
Arranges the graph while taking partition ids and inter-edge information into account.

Specified by:
placePartitions in interface PartitionLayouter.PartitionPlacer
Parameters:
graph - the input graph
clusterIDDP - 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.

getComponentLayouter

public ComponentLayouter getComponentLayouter()
Returns the ComponentLayouter instance used to place the graph partitions.


setComponentLayouter

public void setComponentLayouter(ComponentLayouter componentLayouter)
Sets the ComponentLayouter instance used to place the graph partitions.


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