|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.core.alg.AbstractAlgorithm
de.cau.cs.kieler.klodd.hierarchical.impl.BasicNodePlacer
public class BasicNodePlacer
Node placing algorithm that orders all linear segments and creates an unbalanced placement.
Constructor Summary | |
---|---|
BasicNodePlacer()
|
Method Summary | |
---|---|
Map<LayerElement,Float> |
getElementSpacing()
Gets a map for the amount of spacing available for each layer element. |
LinearSegment[] |
getMovableSegments()
Gets the array of movable linear segments. |
void |
placeNodes(LayeredGraph layeredGraph,
float theobjSpacing,
float theborderSpacing,
boolean balanceOverSize)
Determine a placement for each node in the given layered graph. |
void |
reset()
Removes the associated progress monitor. |
Methods inherited from class de.cau.cs.kieler.core.alg.AbstractAlgorithm |
---|
getMonitor, reset, setProgressMonitor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.cau.cs.kieler.core.alg.IAlgorithm |
---|
reset, setProgressMonitor |
Constructor Detail |
---|
public BasicNodePlacer()
Method Detail |
---|
public void reset()
super.reset()
.
reset
in interface IAlgorithm
reset
in class AbstractAlgorithm
public void placeNodes(LayeredGraph layeredGraph, float theobjSpacing, float theborderSpacing, boolean balanceOverSize)
placeNodes
in interface INodePlacer
layeredGraph
- layered graph to processtheobjSpacing
- minimal distance between two nodes or edges in each layertheborderSpacing
- spacing to the borderbalanceOverSize
- indicates whether node balancing has priority over
diagram sizepublic LinearSegment[] getMovableSegments()
public Map<LayerElement,Float> getElementSpacing()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |