de.cau.cs.kieler.klodd.hierarchical.impl
Class BalancingLayerAssigner
java.lang.Object
de.cau.cs.kieler.core.alg.AbstractAlgorithm
de.cau.cs.kieler.klodd.hierarchical.impl.BalancingLayerAssigner
- All Implemented Interfaces:
- IAlgorithm, ILayerAssigner
public class BalancingLayerAssigner
- extends AbstractAlgorithm
- implements ILayerAssigner
Layer assigner that balances the output of a basic layer assigner.
- Rating

- (2009-12-11) msp
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BalancingLayerAssigner
public BalancingLayerAssigner(ILayerAssigner thebasicLayerAssigner)
- Creates a balancing layer assigner using a basic layer assigner.
- Parameters:
thebasicLayerAssigner
- basic layer assigner
assignLayers
public LayeredGraph assignLayers(KSlimGraph graph,
KNode parentNode,
float objSpacing,
boolean balanceOverSize)
- Create a layered graph and assign layers to each node. The input ports
must be put into the first layer (rank == 0), the output ports into the
last layer (height == 0).
- Specified by:
assignLayers
in interface ILayerAssigner
- Parameters:
graph
- graph structure that contains no directed cyclesparentNode
- the parent layout nodeobjSpacing
- the minimal distance between objectsbalanceOverSize
- indicates whether node balancing has priority over
diagram size
- Returns:
- a layered graph