|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecty25.layout.CompositeLayouter25D
A layouter that allows to express a layout operation as a chain of multiple
layout stages.
This interface mirrors the CompositeLayouter
interface found
in the y.layout
package.
Field Summary | |
protected Layouter25D |
coreLayouter
The layouter that is always invoked at the end of the chain. |
protected LayoutStage25D |
firstStage
The first layout stage. |
protected LayoutStage25D |
lastStage
The last layout stage that is invoked right before the core layouter is invoked. |
Constructor Summary | |
CompositeLayouter25D(LayoutStage25D stage,
Layouter25D coreLayouter)
Creates a new instance of CompositeLayouter25D . |
Method Summary | |
void |
appendStage(LayoutStage25D stage)
Appends a stage to the layout pipeline. |
boolean |
canLayout(LayeredLayoutGraph lg)
Returns true , if this Layouter25D is
capable of layouting the given graph. |
void |
doLayout(LayeredLayoutGraph lg)
Performs the layout on the given graph. |
List |
getLayoutStages()
Returns a vector of all layout stages already present in the layout chain. |
void |
prependStage(LayoutStage25D stage)
Prepends a stage to the layout pipeline. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Layouter25D coreLayouter
protected LayoutStage25D firstStage
protected LayoutStage25D lastStage
Constructor Detail |
public CompositeLayouter25D(LayoutStage25D stage, Layouter25D coreLayouter)
CompositeLayouter25D
.
stage
- the layout stage that is wrapped around the core layoutercoreLayouter
- the core layouter of this composite layouterMethod Detail |
public boolean canLayout(LayeredLayoutGraph lg)
Layouter25D
true
, if this Layouter25D
is
capable of layouting the given graph.
canLayout
in interface Layouter25D
public void doLayout(LayeredLayoutGraph lg)
Layouter25D
doLayout
in interface Layouter25D
public void appendStage(LayoutStage25D stage)
public void prependStage(LayoutStage25D stage)
public List getLayoutStages()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |