de.cau.cs.kieler.klay.layered.p5edges
Class SimpleLabelPlacer

java.lang.Object
  extended by 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 red

Constructor Summary
SimpleLabelPlacer()
           
 
Method Summary
 LLabel longestLabel(Layer thelayer)
          Gives the size of the longest label in the given layer.
 void placeLabels(LayeredGraph thelayeredGraph)
          Calculates label positions for given graph and stores them in it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleLabelPlacer

public SimpleLabelPlacer()
Method Detail

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