de.cau.cs.kieler.kiml.util.alg
Class BoxSorter

java.lang.Object
  extended by de.cau.cs.kieler.core.alg.AbstractAlgorithm
      extended by 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 proposed yellow
(2009-12-11) msp

Constructor Summary
BoxSorter()
           
 
Method Summary
 List<KNode> sort(KNode parentNode, boolean interactive)
          Sorts nodes according to priority and size or position.
 
Methods inherited from class de.cau.cs.kieler.core.alg.AbstractAlgorithm
getMonitor, reset, reset, setProgressMonitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoxSorter

public BoxSorter()
Method Detail

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 node
interactive - whether position should be considered instead of size
Returns:
sorted list of children