|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.layout.AbstractLayoutStage
public abstract class AbstractLayoutStage
Abstract base class implementing LayoutStage that handles the management of the core layout algorithm.
Subclasses of this stage can use the provided methods, such that the management of the
core layout algorithm does not need to be considered anymore.
CanonicMultiStageLayouter![]() |
![]() |
| Field Summary |
|---|
| Fields inherited from interface y.layout.Layouter |
|---|
EDGE_ID_DPKEY, NODE_ID_DPKEY, NODE_TYPE_DPKEY, SELECTED_EDGES, SELECTED_NODES |
| Constructor Summary | |
|---|---|
AbstractLayoutStage()
Creates a new LayoutStage instance without a specific core layout algorithm. |
|
AbstractLayoutStage(Layouter coreLayouter)
Creates a new LayoutStage instance using the given core layout algorithm. |
|
| Method Summary | |
|---|---|
protected boolean |
canLayoutCore(LayoutGraph graph)
Checks whether or not the core layout algorithm can arrange the given graph. |
protected void |
doLayoutCore(LayoutGraph graph)
Invokes the layout process of the core layout algorithm. |
Layouter |
getCoreLayouter()
Returns the core layout algorithm that is wrapped by this stage. |
void |
setCoreLayouter(Layouter layouter)
Specifies the core layout algorithm that is wrapped by this stage. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface y.layout.Layouter |
|---|
canLayout, doLayout |
| Constructor Detail |
|---|
public AbstractLayoutStage()
LayoutStage instance without a specific core layout algorithm.
public AbstractLayoutStage(Layouter coreLayouter)
LayoutStage instance using the given core layout algorithm.
coreLayouter - the core layout routine| Method Detail |
|---|
public void setCoreLayouter(Layouter layouter)
setCoreLayouter in interface LayoutStagelayouter - the core layout routinepublic Layouter getCoreLayouter()
getCoreLayouter in interface LayoutStagesetCoreLayouter(Layouter)protected void doLayoutCore(LayoutGraph graph)
core layout algorithm.
Overriding classes may call this method during Layouter.doLayout(LayoutGraph) to delegate arranging the graph to
the core layout algorithm. They can add pre- and post-processing code before and after
this call.
graph - the input graphprotected boolean canLayoutCore(LayoutGraph graph)
core layout algorithm can arrange the given graph.
graph - the input graph
true if there is no core layout algorithm or it can handle the
input graph, false otherwise
|
© Copyright 2000-2025, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||