de.cau.cs.kieler.klay.layered.p5edges
Interface ILabelPlacer

All Superinterfaces:
IAlgorithm
All Known Implementing Classes:
SimpleLabelPlacer

public interface ILabelPlacer
extends IAlgorithm

Interface for label placement modules.

Precondition:
the graph has a proper layering with assigned node and port positions
Postcondition:
the position of every label is set

Rating red

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 interface de.cau.cs.kieler.core.alg.IAlgorithm
reset, reset, setProgressMonitor
 

Method Detail

placeLabels

void placeLabels(LayeredGraph thelayeredGraph)
Calculates label positions for given graph and stores them in it.

Parameters:
thelayeredGraph - The respective graph

longestLabel

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