|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.layout.SequentialLayouter
public class SequentialLayouter
This Layouter will take several Layouter implementations and will
run these layout algorithms one after the other in the order in which they
were added.
This class can for example be used to bundle several layout steps and
handover a single layouter to a BufferedLayouter.
| Field Summary |
|---|
| Fields inherited from interface y.layout.Layouter |
|---|
EDGE_ID_DPKEY, NODE_ID_DPKEY, SELECTED_EDGES, SELECTED_NODES |
| Constructor Summary | |
|---|---|
SequentialLayouter()
|
|
| Method Summary | |
|---|---|
void |
appendLayouter(Layouter layouter)
Appends the given layouter to the end of the layouter chain. |
void |
appendLayouters(List layouters)
Appends the specified layouters to the end of the layouter chain. |
boolean |
canLayout(LayoutGraph graph)
Returns true iff the given graph can be laid
out by this algorithm. |
void |
clearLayouterChain()
Clears the layouter chain and therefore removes all layouters. |
void |
doLayout(LayoutGraph graph)
Main layout routine that assigns new layout information to the given graph. |
List |
getLayouters()
Returns a list of the layouters that are currently in the layout chain. |
void |
setLayouters(List layouters)
Sets the given list of layouters as the layouter chain. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SequentialLayouter()
| Method Detail |
|---|
public boolean canLayout(LayoutGraph graph)
Layoutertrue iff the given graph can be laid
out by this algorithm. Calling doLayout with
the given graph as its argument will only success if
this method returns true.
canLayout in interface Layouterpublic void doLayout(LayoutGraph graph)
Layouter
doLayout in interface Layouterpublic void appendLayouter(Layouter layouter)
layouter - the layouter that should be appended to the chain.public void appendLayouters(List layouters)
layouters - the layouters that should be appended to the chain.public List getLayouters()
public void setLayouters(List layouters)
layouters - a list of layouters that shall be run one after the other.public void clearLayouterChain()
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||