Search this API

y.layout.grouping
Class ParentEdgeAugmentationStage

java.lang.Object
  extended by y.layout.AbstractLayoutStage
      extended by 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)
          Main layout routine that assigns new layout information to the given 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
Main layout routine that assigns new layout information to the given graph.


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