|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.layout.AbstractLayoutStage
y.layout.BufferedLayouter
public class BufferedLayouter
A hull layouter that invokes another layout algorithm on a copy of its input graph.
After the layout process has finished the calculated layout will be either written back to the original graph or will be provided as a separate graph layout information in terms of the original input graph. This class also provides the possibility to perform arbitrary layout algorithms merely on a graph interface plus associated graph layout. This comes in handy if an application has its own graph and merely provides an graph interface adapter to the yFiles graph layout machinery.
| Field Summary |
|---|
| Fields inherited from interface y.layout.Layouter |
|---|
EDGE_ID_DPKEY, NODE_ID_DPKEY, SELECTED_EDGES, SELECTED_NODES |
| Constructor Summary | |
|---|---|
BufferedLayouter()
Instantiates a new BufferedLayouter. |
|
BufferedLayouter(Layouter coreLayouter)
Instantiates a new BufferedLayouter that wraps the given core layouter. |
|
| Method Summary | |
|---|---|
GraphLayout |
calcLayout(GraphInterface graph,
GraphLayout layout)
Invokes the core Layouter on a copy of the given graph. |
GraphLayout |
calcLayout(LayoutGraph layoutGraph)
Invokes the core Layouter on a copy of the given graph. |
boolean |
canLayout(LayoutGraph graph)
Whether or not this layouter can layout the given graph. |
void |
doLayout(GraphInterface graph,
GraphLayout layout)
Invokes the core Layouter on a copy of the given graph. |
void |
doLayout(LayoutGraph layoutGraph)
Invokes the core Layouter on a copy of the given 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 |
|---|
public BufferedLayouter()
public BufferedLayouter(Layouter coreLayouter)
| Method Detail |
|---|
public GraphLayout calcLayout(LayoutGraph layoutGraph)
public GraphLayout calcLayout(GraphInterface graph,
GraphLayout layout)
public void doLayout(LayoutGraph layoutGraph)
public void doLayout(GraphInterface graph,
GraphLayout layout)
public boolean canLayout(LayoutGraph graph)
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||