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.


Field Summary
 
Fields inherited from interface y.layout.Layouter
EDGE_ID_DPKEY, NODE_ID_DPKEY, SELECTED_EDGES, SELECTED_NODES
 
Constructor Summary
ParentEdgeAugmentationStage()
          Creates a new instance of ParentEdgeAugmentationStage
 
Method Summary
 boolean canLayout(LayoutGraph graph)
          Returns true if the core layouter can layout the augmented graph.
 void doLayout(LayoutGraph graph)
          Assigns a new graph layout to the given layout graph.
 
Methods inherited from class y.layout.AbstractLayoutStage
canLayoutCore, doLayoutCore, getCoreLayouter, setCoreLayouter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParentEdgeAugmentationStage

public ParentEdgeAugmentationStage()
Creates a new instance of ParentEdgeAugmentationStage

Method Detail

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
Assigns a new graph layout to the given layout graph.


© Copyright 2000-2003,
yWorks GmbH.
All rights reserved.

2003