|
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.OldLayererWrapper
public class OldLayererWrapper
This class wraps a Layerer implementation from y.layout.hierarchic
package to behave like a Layerer implementation from y.layout.hierarchic.incremental
package.
HierarchicLayouter.setLayerer(Layerer)![]() |
![]() |
| Constructor Summary | |
|---|---|
OldLayererWrapper(Layerer oldLayerer)
Creates a new instance of OldLayererWrapper that wraps the given
layerer instance. |
|
| Method Summary | |
|---|---|
void |
assignLayers(LayoutGraph graph,
Layers layers,
LayoutDataProvider ldp)
Assigns all nodes of the graph to layers and adds them to the Layers instance. |
Layerer |
getOldLayerer()
Returns the delegate layerer instance. |
void |
setOldLayerer(Layerer oldLayerer)
Specifies the delegate layerer instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OldLayererWrapper(Layerer oldLayerer)
OldLayererWrapper that wraps the given
layerer instance.
oldLayerer - the old layerer implementation
java.lang.IllegalArgumentException - if the given old layerer is null| Method Detail |
|---|
public void assignLayers(LayoutGraph graph,
Layers layers,
LayoutDataProvider ldp)
LayererLayers instance.
In order to create new layers, factory method Layers.insert(byte, int) has to be used.
Information about the nodes is provided by a LayoutDataProvider. However, positional information
(see NodeData.getPosition() and NodeData.getLayer()) is not available during this phase.
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 getOldLayerer()
layerer instance.
layerer instancepublic void setOldLayerer(Layerer oldLayerer)
layerer instance.
oldLayerer - the given layerer instance
java.lang.IllegalArgumentException - if the specified Layerer 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 | ||||||||