y.layout
Class AbstractLayoutStage

java.lang.Object
  |
  +--y.layout.AbstractLayoutStage
All Implemented Interfaces:
Layouter, LayoutStage
Direct Known Subclasses:
AbstractLabelingAlgorithm, BufferedLayouter, ComponentLayouter, CompositeLayoutStage, FixedGroupLayoutStage, GroupedShuffleLayouter, GroupNodeHider, LabelLayoutDataRefinement, OrientationLayouter, OrthogonalEdgeRouter, ParallelEdgeLayouter, ParentEdgeAugmentationStage, RecursiveGroupLayouter, SelfLoopLayouter, SubgraphLayouter

public abstract class AbstractLayoutStage
extends Object
implements LayoutStage

Partial LayoutStage implementation that handles the management of the core layouter part.


Field Summary
 
Fields inherited from interface y.layout.Layouter
EDGE_ID_DPKEY, NODE_ID_DPKEY, SELECTED_EDGES, SELECTED_NODES
 
Constructor Summary
AbstractLayoutStage()
          Default constructor.
AbstractLayoutStage(Layouter core)
          Initializes this AbstractLayoutStage with the given core Layouter.
 
Method Summary
protected  boolean canLayoutCore(LayoutGraph graph)
          Queries the core layouter whether or not the given graph can be layed out.
protected  void doLayoutCore(LayoutGraph graph)
          Invokes the layout routine of the core layouter.
 Layouter getCoreLayouter()
          Returns the core layouter.
 void setCoreLayouter(Layouter l)
          Sets the core layouter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface y.layout.Layouter
canLayout, doLayout
 

Constructor Detail

AbstractLayoutStage

public AbstractLayoutStage()
Default constructor.


AbstractLayoutStage

public AbstractLayoutStage(Layouter core)
Initializes this AbstractLayoutStage with the given core Layouter.

Method Detail

setCoreLayouter

public void setCoreLayouter(Layouter l)
Sets the core layouter.

Specified by:
setCoreLayouter in interface LayoutStage

getCoreLayouter

public Layouter getCoreLayouter()
Returns the core layouter.

Specified by:
getCoreLayouter in interface LayoutStage

doLayoutCore

protected void doLayoutCore(LayoutGraph graph)
Invokes the layout routine of the core layouter.


canLayoutCore

protected boolean canLayoutCore(LayoutGraph graph)
Queries the core layouter whether or not the given graph can be layed out.


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

2003