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 java.lang.Object
implements PartitionLayouter.PartitionPlacer

PartitionLayouter.ComponentPartitionPlacer uses ComponentLayouter to place the partitions.

 

Constructor Summary
PartitionLayouter.ComponentPartitionPlacer()
          Creates a new PartitionLayouter.ComponentPartitionPlacer instance with default settings.
 
Method Summary
 ComponentLayouter getComponentLayouter()
          Returns the ComponentLayouter instance used for placing 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)
          Specifies the ComponentLayouter instance used for placing 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 PartitionLayouter.ComponentPartitionPlacer instance with default settings.

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. Edges which connect nodes that belong to two different partitions are called inter-edges

Specified by:
placePartitions in interface PartitionLayouter.PartitionPlacer
Parameters:
graph - the input graph
clusterIDDP - the partition ID for each node in the graph
interEdgeDP - the map which marks inter-edges

getComponentLayouter

public ComponentLayouter getComponentLayouter()
Returns the ComponentLayouter instance used for placing the graph partitions.

Returns:
the ComponentLayouter that is used
See Also:
setComponentLayouter(ComponentLayouter)

setComponentLayouter

public void setComponentLayouter(ComponentLayouter componentLayouter)
Specifies the ComponentLayouter instance used for placing the graph partitions.

Default Value:
The default value is ComponentLayouter. A ComponentLayouter instance with default settings.
Parameters:
componentLayouter - the ComponentLayouter that should be used

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