y.layout.grouping
Class ParentEdgeAugmentationStage
java.lang.Object
y.layout.AbstractLayoutStage
y.layout.grouping.ParentEdgeAugmentationStage
- All Implemented Interfaces:
- Layouter, LayoutStage
public class ParentEdgeAugmentationStage
- extends AbstractLayoutStage
This class can be used as a decorating stage for layout algorithms that
cannot handle node groups. Before calling the core layout algorithms, this
class will augment the graph structure. For each node that belongs to a group,
a so-called "parent-edge" will be temporarily inserted into the graph.
Method Summary |
boolean |
canLayout(LayoutGraph graph)
Returns true if the core layouter can layout the augmented graph. |
void |
doLayout(LayoutGraph graph)
Main layout routine that assigns new layout information to the given graph. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParentEdgeAugmentationStage
public ParentEdgeAugmentationStage()
- Creates a new instance of ParentEdgeAugmentationStage
canLayout
public boolean canLayout(LayoutGraph graph)
- Returns true if the core layouter can layout the augmented graph.
doLayout
public void doLayout(LayoutGraph graph)
- Description copied from interface:
Layouter
- Main layout routine that assigns new layout information to the given graph.