org.graffiti.plugins.algorithms.reingoldtilford
Class BestFitDecreaseChildOrderStrategy

java.lang.Object
  extended by org.graffiti.plugins.algorithms.reingoldtilford.BestFitDecreaseChildOrderStrategy
All Implemented Interfaces:
ChildOrderStrategy

public class BestFitDecreaseChildOrderStrategy
extends Object
implements ChildOrderStrategy

Tries to minimize the width of the tree layout by succesively adding the child that respectively contributes least to an increase of the TreeCombinationStack.

Version:
$Revision$ $Date$
Author:
Andreas Gleißner
See Also:
ChildOrderPolicy.BEST_FIT_DECREASE

Constructor Summary
BestFitDecreaseChildOrderStrategy()
           
 
Method Summary
 void combineChildren(Tree parent, ReingoldTilfordAlgorithm algorithm)
          Combines the tree layouts of the children of parent.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BestFitDecreaseChildOrderStrategy

public BestFitDecreaseChildOrderStrategy()
Method Detail

combineChildren

public void combineChildren(Tree parent,
                            ReingoldTilfordAlgorithm algorithm)
Combines the tree layouts of the children of parent.

Preconditions:
parent.getChildren().size() > 1

Specified by:
combineChildren in interface ChildOrderStrategy
Parameters:
parent - the Tree whose children are to be combined.
algorithm - the Reingold-Tilford-Algorithm.
See Also:
ChildOrderPolicy.combineChildren(Tree, ReingoldTilfordAlgorithm)


Generated at 2012-05-30 11:01:25 PM CEST