de.cau.cs.kieler.klay.layered.p3order
Interface IConstraintResolver

All Known Implementing Classes:
ForsterConstraintResolver

public interface IConstraintResolver

Detects and resolves violated constraints.

Rating red

Method Summary
 void processConstraints(List<NodeGroup> nodeGroups, int layerIndex, Random random, Map<LNode,NodeGroup>[] singleNodeNodeGroups, com.google.common.collect.Multimap<LNode,LNode> layoutUnits)
          Finds and handles violated constraints.
 

Method Detail

processConstraints

void processConstraints(List<NodeGroup> nodeGroups,
                        int layerIndex,
                        Random random,
                        Map<LNode,NodeGroup>[] singleNodeNodeGroups,
                        com.google.common.collect.Multimap<LNode,LNode> layoutUnits)
Finds and handles violated constraints.

Parameters:
nodeGroups - the array of single-node vertices sorted by their barycenter values.
layerIndex - the layer index.
random - the random number generator.
singleNodeNodeGroups - a map of single-node NodeGroups for each layer.
layoutUnits - a map associating layout units with their respective members.