de.cau.cs.kieler.kiml.util.alg
Class BoxSorter
java.lang.Object
de.cau.cs.kieler.core.alg.AbstractAlgorithm
de.cau.cs.kieler.kiml.util.alg.BoxSorter
- All Implemented Interfaces:
- IAlgorithm
public class BoxSorter
- extends AbstractAlgorithm
Algorithm that sorts nodes according to their priority and size or position.
- Rating

- (2009-12-11) msp
Method Summary |
List<KNode> |
sort(KNode parentNode,
boolean interactive)
Sorts nodes according to priority and size or position. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BoxSorter
public BoxSorter()
sort
public List<KNode> sort(KNode parentNode,
boolean interactive)
- Sorts nodes according to priority and size or position. Nodes with
higher priority get a lower rank.
- Parameters:
parentNode
- parent nodeinteractive
- whether position should be considered instead of size
- Returns:
- sorted list of children