|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.AbstractLayoutStage y.layout.BufferedLayouter
public class BufferedLayouter
A BufferedLayouter
is a hull algorithm that invokes its core layout algorithm
on a
copy of the input graph.
After the layout process has finished, the calculated layout will either be written back to the original graph or
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 only provides a graph interface adapter to the yFiles graph layout machinery.
Field Summary |
---|
Fields inherited from interface y.layout.Layouter |
---|
EDGE_ID_DPKEY, NODE_ID_DPKEY, NODE_TYPE_DPKEY, SELECTED_EDGES, SELECTED_NODES |
Constructor Summary | |
---|---|
BufferedLayouter()
Creates a new BufferedLayouter instance without a core layout algorithm . |
|
BufferedLayouter(Layouter coreLayouter)
Creates a new BufferedLayouter instance using the given core layout algorithm . |
Method Summary | |
---|---|
GraphLayout |
calcLayout(GraphInterface graph,
GraphLayout layout)
Returns the layout calculated by the core layout algorithm without changing the input
graph. |
GraphLayout |
calcLayout(LayoutGraph graph)
Returns the layout calculated by the core layout algorithm without changing the input
graph. |
boolean |
canLayout(LayoutGraph graph)
Checks whether or not this layout algorithm is able to arrange the given graph. |
void |
doLayout(GraphInterface graph,
GraphLayout layout)
Applies the layout calculated by the core layout algorithm to the input graph. |
void |
doLayout(LayoutGraph graph)
Applies the layout calculated by the core layout algorithm to the input 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()
BufferedLayouter
instance without a core layout algorithm
.
public BufferedLayouter(Layouter coreLayouter)
BufferedLayouter
instance using the given core layout algorithm
.
coreLayouter
- the core layout routineMethod Detail |
---|
public GraphLayout calcLayout(LayoutGraph graph)
core layout algorithm
without changing the input
graph.
graph
- the input graph
calcLayout(GraphInterface, GraphLayout)
public GraphLayout calcLayout(GraphInterface graph, GraphLayout layout)
core layout algorithm
without changing the input
graph.
graph
- the input graphlayout
- the layout information for the input graph
calcLayout(LayoutGraph)
public void doLayout(LayoutGraph graph)
core layout algorithm
to the input graph.
The layout calculation is invoked on a copy of the given graph. Then, the calculated layout will be written back to
the given graph.
graph
- the input graphdoLayout(GraphInterface, GraphLayout)
public void doLayout(GraphInterface graph, GraphLayout layout)
core layout algorithm
to the input graph.
The layout calculation is invoked on a copy of the given graph. Then, the calculated layout will be written back to
the given graph.
graph
- the input graphlayout
- the layout information for the input graphdoLayout(LayoutGraph)
public boolean canLayout(LayoutGraph graph)
core layout algorithm
.
graph
- the input graph
true
if there is no core layout algorithm or the core layout algorithm accepts the graph,
false
otherwiseLayouter.doLayout(LayoutGraph)
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |