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

java.lang.Object
  extended by de.cau.cs.kieler.core.alg.AbstractAlgorithm
      extended by de.cau.cs.kieler.kiml.util.alg.BoxPlacer
All Implemented Interfaces:
IAlgorithm

public class BoxPlacer
extends AbstractAlgorithm

Placing algorithm for boxes. Edges of the graph are not considered.

Rating proposed yellow
(2009-12-11) msp

Field Summary
static float DEF_ASPECT_RATIO
          default value for aspect ratio.
 
Constructor Summary
BoxPlacer()
           
 
Method Summary
 void placeBoxes(List<KNode> sortedBoxes, KNode parentNode, float objSpacing, float borderSpacing, boolean expandNodes)
          Place the boxes of the given sorted list according to their order in the list.
 
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
 

Field Detail

DEF_ASPECT_RATIO

public static final float DEF_ASPECT_RATIO
default value for aspect ratio.

See Also:
Constant Field Values
Constructor Detail

BoxPlacer

public BoxPlacer()
Method Detail

placeBoxes

public void placeBoxes(List<KNode> sortedBoxes,
                       KNode parentNode,
                       float objSpacing,
                       float borderSpacing,
                       boolean expandNodes)
Place the boxes of the given sorted list according to their order in the list.

Parameters:
sortedBoxes - sorted list of boxes
parentNode - parent node
objSpacing - minimal spacing between elements
borderSpacing - spacing to the border
expandNodes - if true, the nodes are expanded to fill their parent