|
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.PartitionLayouter
public class PartitionLayouter
PartitionLayouter provides a framework for layouts that are based on a divide and conquer approach.
The approach can be subdivided into four stages:
setPartitionFinder(PartitionLayouter.PartitionFinder).
AbstractLayoutStage.setCoreLayouter(Layouter).
setPartitionPlacer(PartitionLayouter.PartitionPlacer).
setInterEdgeRouter(PartitionLayouter.InterEdgeRouter)
![]() |
![]() |
| Field Summary |
|---|
| Fields inherited from interface y.layout.Layouter |
|---|
EDGE_ID_DPKEY, NODE_ID_DPKEY, NODE_TYPE_DPKEY, SELECTED_EDGES, SELECTED_NODES |
| Constructor Summary | |
|---|---|
PartitionLayouter()
Creates a new PartitionLayouter instance with default settings. |
|
| Method Summary | |
|---|---|
boolean |
canLayout(LayoutGraph graph)
Accepts all graphs that can be handled by the core layout algorithm. |
void |
doLayout(LayoutGraph graph)
Arranges and places independent partitions in the graph. |
PartitionLayouter.InterEdgeRouter |
getInterEdgeRouter()
Return the PartitionLayouter.InterEdgeRouter instance that is responsible for inter-edge routing. |
PartitionLayouter.PartitionFinder |
getPartitionFinder()
Returns the PartitionLayouter.PartitionFinder instance that is responsible for partitioning the input graph. |
PartitionLayouter.PartitionPlacer |
getPartitionPlacer()
Returns the PartitionLayouter.PartitionPlacer instance that is responsible for arranging the graph partitions. |
void |
setInterEdgeRouter(PartitionLayouter.InterEdgeRouter interEdgeRouter)
Specifies the PartitionLayouter.InterEdgeRouter instance that is responsible for inter-edge routing. |
void |
setPartitionFinder(PartitionLayouter.PartitionFinder partitionFinder)
Specifies the PartitionLayouter.PartitionFinder instance that is responsible for partitioning the input graph. |
void |
setPartitionPlacer(PartitionLayouter.PartitionPlacer partitionPlacer)
Specifies the PartitionLayouter.PartitionPlacer instance that is responsible for arranging the graph partitions. |
| 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 PartitionLayouter()
PartitionLayouter instance with default settings.
| Method Detail |
|---|
public boolean canLayout(LayoutGraph graph)
core layout algorithm.
If there is no core layout algorithm, all graphs are accepted.
graph - the input graph
true if there is no core layout algorithm or the core layout algorithm accepts the graph,
false otherwiseLayouter.doLayout(LayoutGraph)public void doLayout(LayoutGraph graph)
graph - the input graph
java.lang.IllegalStateException - if the partition finder is
nullLayouter.canLayout(LayoutGraph)public PartitionLayouter.PartitionFinder getPartitionFinder()
PartitionLayouter.PartitionFinder instance that is responsible for partitioning the input graph.
PartitionLayouter.PartitionFinder that is usedsetPartitionFinder(PartitionFinder)public void setPartitionFinder(PartitionLayouter.PartitionFinder partitionFinder)
PartitionLayouter.PartitionFinder instance that is responsible for partitioning the input graph.
partitionFinder - the PartitionLayouter.PartitionFinder that should be usedpublic PartitionLayouter.PartitionPlacer getPartitionPlacer()
PartitionLayouter.PartitionPlacer instance that is responsible for arranging the graph partitions.
PartitionLayouter.PartitionPlacer that is usedsetPartitionPlacer(PartitionPlacer)public void setPartitionPlacer(PartitionLayouter.PartitionPlacer partitionPlacer)
PartitionLayouter.PartitionPlacer instance that is responsible for arranging the graph partitions.
partitionPlacer - the PartitionLayouter.PartitionPlacer that should be usedpublic PartitionLayouter.InterEdgeRouter getInterEdgeRouter()
PartitionLayouter.InterEdgeRouter instance that is responsible for inter-edge routing.
PartitionLayouter.InterEdgeRouter that is usedsetInterEdgeRouter(InterEdgeRouter)public void setInterEdgeRouter(PartitionLayouter.InterEdgeRouter interEdgeRouter)
PartitionLayouter.InterEdgeRouter instance that is responsible for inter-edge routing.
interEdgeRouter - the PartitionLayouter.InterEdgeRouter that should be used
|
© Copyright 2000-2025, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||