de.cau.cs.kieler.klay.layered.intermediate
Class CommentPreprocessor
java.lang.Object
de.cau.cs.kieler.core.alg.AbstractAlgorithm
de.cau.cs.kieler.klay.layered.intermediate.CommentPreprocessor
- All Implemented Interfaces:
- IAlgorithm, ILayoutProcessor
public class CommentPreprocessor
- extends AbstractAlgorithm
- implements ILayoutProcessor
A pre-processor for comment boxes. Looks for comments that have exactly one connection
to a normal node and removes them from the graph. Such comments are put either into
the Properties.TOP_COMMENTS
or the Properties.BOTTOM_COMMENTS
list
of the connected node and processed later by the CommentPostprocessor
.
Other comments are processed normally, i.e. they are treated as regular nodes, but
their incident edges may be reversed.
- Precondition:
- none
- Postcondition:
- Comments with only one connection to a port of degree 1
are removed and stored for later processing.
- Slots:
- Before phase 1.
- Rating

Method Summary |
void |
process(LayeredGraph layeredGraph)
Performs the phase's work on the given graph. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommentPreprocessor
public CommentPreprocessor()
process
public void process(LayeredGraph layeredGraph)
- Performs the phase's work on the given graph.
- Specified by:
process
in interface ILayoutProcessor
- Parameters:
layeredGraph
- a layered graph