de.cau.cs.kieler.klay.layered.p5edges
Class SimpleLabelPlacer
java.lang.Object
de.cau.cs.kieler.klay.layered.p5edges.SimpleLabelPlacer
public class SimpleLabelPlacer
- extends Object
A simple label placement implementation.
Places the labels in the middle between two ports.
- Rating

Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleLabelPlacer
public SimpleLabelPlacer()
placeLabels
public void placeLabels(LayeredGraph thelayeredGraph)
- Calculates label positions for given graph and stores them in it.
- Parameters:
thelayeredGraph
- The respective graph
longestLabel
public LLabel longestLabel(Layer thelayer)
- Gives the size of the longest label in the given layer.
You should only consider those of source ports.
- Parameters:
thelayer
- The layer to check
- Returns:
- The longest LLabel