|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.layout.hierarchic.incremental.TopologicalIncrementalLayerer
public class TopologicalIncrementalLayerer
This class is a Layerer implementation that inserts nodes incrementally into an existing layer structure,
without destroying the existing layout.
Nodes are inserted such that the length of backward pointing edges is minimized (not their number!). The method implemented will insert new layers into the current layering, if necessary, at locally optimal positions.
![]() |
![]() |
| Constructor Summary | |
|---|---|
TopologicalIncrementalLayerer()
Creates a new instance of TopologicalIncrementalLayerer. |
|
| Method Summary | |
|---|---|
void |
assignLayers(LayoutGraph graph,
Layers layers,
LayoutDataProvider ldp)
Calculates an optimal layering for incremental nodes. |
LayeredComponentsMerger |
getLayeredComponentsMerger()
Returns the LayeredComponentsMerger instance used for merging the layers of separate components into
the current layering. |
Layerer |
getSeparateComponentsLayerer()
Returns the Layerer instance used for the layering of separate components. |
void |
setLayeredComponentsMerger(LayeredComponentsMerger layeredComponentsMerger)
Specifies the LayeredComponentsMerger instance used for merging the layers of separate components into
the current layering. |
void |
setSeparateComponentsLayerer(Layerer separateComponentsLayerer)
Specifies the Layerer instance used for the layering of separate components. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TopologicalIncrementalLayerer()
TopologicalIncrementalLayerer.
| Method Detail |
|---|
public void assignLayers(LayoutGraph graph,
Layers layers,
LayoutDataProvider ldp)
assignLayers in interface Layerergraph - the input graphlayers - the Layers instance that will be filled with the results of the calculationldp - the LayoutDataProvider used for querying information about the nodes and edgesLayers.insert(byte, int),
Layer.add(y.base.Node)public Layerer getSeparateComponentsLayerer()
Layerer instance used for the layering of separate components.
Layerer instance used for layering the separate componentssetSeparateComponentsLayerer(Layerer)public void setSeparateComponentsLayerer(Layerer separateComponentsLayerer)
Layerer instance used for the layering of separate components.
OldLayererWrapper. An instance of OldLayererWrapper wrapping a WeightedLayerer
will be used for the layering of separate components.separateComponentsLayerer - the given Layerer instance for layering the separate components
java.lang.IllegalArgumentException - if the specified Layerer is nullpublic LayeredComponentsMerger getLayeredComponentsMerger()
LayeredComponentsMerger instance used for merging the layers of separate components into
the current layering.
LayeredComponentsMerger instance used for merging the layers of separate componentssetLayeredComponentsMerger(LayeredComponentsMerger)public void setLayeredComponentsMerger(LayeredComponentsMerger layeredComponentsMerger)
LayeredComponentsMerger instance used for merging the layers of separate components into
the current layering.
DefaultLayeredComponentsMergerlayeredComponentsMerger - the given LayeredComponentsMerger instance
java.lang.IllegalArgumentException - if the specified LayeredComponentsMerger is null
|
© Copyright 2000-2025, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||