de.cau.cs.kieler.klodd.hierarchical.modules
Interface ILayerAssigner
- All Superinterfaces:
- IAlgorithm
- All Known Implementing Classes:
- BalancingLayerAssigner, LongestPathLayerAssigner
public interface ILayerAssigner
- extends IAlgorithm
Interface for algorithms that assign layers to each node of a graph.
- Rating

- (2009-12-11) msp
assignLayers
LayeredGraph assignLayers(KSlimGraph slimGraph,
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).
- Parameters:
slimGraph
- 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