de.cau.cs.kieler.kiml.util.alg
Class BoxPlacer
java.lang.Object
de.cau.cs.kieler.core.alg.AbstractAlgorithm
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

- (2009-12-11) msp
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEF_ASPECT_RATIO
public static final float DEF_ASPECT_RATIO
- default value for aspect ratio.
- See Also:
- Constant Field Values
BoxPlacer
public BoxPlacer()
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 boxesparentNode
- parent nodeobjSpacing
- minimal spacing between elementsborderSpacing
- spacing to the borderexpandNodes
- if true, the nodes are expanded to fill their parent