y.layout
Class SubgraphLayouter

java.lang.Object
  |
  +--y.layout.AbstractLayoutStage
        |
        +--y.layout.SubgraphLayouter
All Implemented Interfaces:
Layouter, LayoutStage

public class SubgraphLayouter
extends AbstractLayoutStage

A layout stage that filters out all graph elements that are not part of a subgraph that is induced by the selected nodes of the input graph.


Field Summary
 
Fields inherited from interface y.layout.Layouter
EDGE_ID_DPKEY, NODE_ID_DPKEY, SELECTED_EDGES, SELECTED_NODES
 
Constructor Summary
SubgraphLayouter()
           
SubgraphLayouter(Layouter coreLayouter)
           
 
Method Summary
 boolean canLayout(LayoutGraph graph)
          Returns true iff the given graph can be layed out by this algorithm.
 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

SubgraphLayouter

public SubgraphLayouter(Layouter coreLayouter)

SubgraphLayouter

public SubgraphLayouter()
Method Detail

doLayout

public void doLayout(LayoutGraph graph)
Description copied from interface: Layouter
Assigns a new graph layout to the given layout graph.


canLayout

public boolean canLayout(LayoutGraph graph)
Description copied from interface: Layouter
Returns true iff the given graph can be layed out by this algorithm. Calling doLayout with the given graph as it's argument will only success if this method returns true.


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

2003