y25.layout
Class AbstractLayoutStage25D

java.lang.Object
  extended byy25.layout.AbstractLayoutStage25D
All Implemented Interfaces:
Layouter25D, LayoutStage25D
Direct Known Subclasses:
FlatLayouter.CanonicFlatteningStage

public abstract class AbstractLayoutStage25D
extends Object
implements LayoutStage25D

Partial LayoutStage25D implementation that handles the core layouter part. This interface mirrors the AbstractLayoutStage interface found in the y.layout package.


Field Summary
protected  Layouter25D coreLayouter
          The core layouter of this layout stage.
 
Constructor Summary
AbstractLayoutStage25D()
          Creates an layout stage without setting the core layouter.
AbstractLayoutStage25D(Layouter25D core)
          Initializes this AbstractLayoutStage25D with the given core layouter.
 
Method Summary
protected  boolean canLayoutCore(LayeredLayoutGraph llg)
          Queries the core layouter whether or not the given graph can be layed out.
protected  void doLayoutCore(LayeredLayoutGraph llg)
          Invokes the layout routine of the core layouter.
 Layouter25D getCoreLayouter25D()
          Returns the core layouter.
 void setCoreLayouter25D(Layouter25D core)
          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 y25.layout.Layouter25D
canLayout, doLayout
 

Field Detail

coreLayouter

protected Layouter25D coreLayouter
The core layouter of this layout stage.

Constructor Detail

AbstractLayoutStage25D

public AbstractLayoutStage25D()
Creates an layout stage without setting the core layouter.


AbstractLayoutStage25D

public AbstractLayoutStage25D(Layouter25D core)
Initializes this AbstractLayoutStage25D with the given core layouter.

Method Detail

getCoreLayouter25D

public Layouter25D getCoreLayouter25D()
Description copied from interface: LayoutStage25D
Returns the core layouter.

Specified by:
getCoreLayouter25D in interface LayoutStage25D

setCoreLayouter25D

public void setCoreLayouter25D(Layouter25D core)
Description copied from interface: LayoutStage25D
Sets the core layouter.

Specified by:
setCoreLayouter25D in interface LayoutStage25D

canLayoutCore

protected boolean canLayoutCore(LayeredLayoutGraph llg)
Queries the core layouter whether or not the given graph can be layed out. If the core layouter is not present, true is returned.


doLayoutCore

protected void doLayoutCore(LayeredLayoutGraph llg)
Invokes the layout routine of the core layouter. If the core layouter is not present, the passed layered layout graph will not be modified.