y.layout.hierarchic.incremental
Class PartitionGridLayoutStage
java.lang.Object
y.layout.AbstractLayoutStage
y.layout.hierarchic.incremental.PartitionGridLayoutStage
- All Implemented Interfaces:
- Layouter, LayoutStage
public class PartitionGridLayoutStage
- extends AbstractLayoutStage
Layout stage that is used for handling a given partition grid structure (PartitionGrid) that is
attached to a graph with DataProvider PartitionGrid.PARTITION_GRID_DPKEY.
Note: the IncrementalHierarchicLayouter automatically uses this stage if needed.
- See Also:
PartitionGrid,
IncrementalHierarchicLayouter-
-
|
Method Summary |
boolean |
canLayout(LayoutGraph graph)
Returns true iff the given graph can be laid
out by this algorithm. |
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 |
PartitionGridLayoutStage
public PartitionGridLayoutStage()
canLayout
public boolean canLayout(LayoutGraph graph)
- Description copied from interface:
Layouter
- Returns
true iff the given graph can be laid
out by this algorithm. Calling doLayout with
the given graph as its argument will only success if
this method returns true.
doLayout
public void doLayout(LayoutGraph graph)
- Description copied from interface:
Layouter
- Main layout routine that assigns new layout information to the given graph.