|
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
Wraps a Layerer implementation from the y.layout.hierarchic
package to behave like a Layerer implementation from the
y.layout.hierarchic.incremental package.
HierarchicLayouter.setLayerer(Layerer)
| Constructor Summary | |
|---|---|
OldLayererWrapper(Layerer oldLayerer)
Creates a new instance of OldLayererWrapper, wrapping the given layerer. |
|
| Method Summary | |
|---|---|
void |
assignLayers(LayoutGraph graph,
Layers layers,
LayoutDataProvider ldp)
This method assigns all nodes in the graph to layers and registers them in the Layers instance. |
Layerer |
getOldLayerer()
Returns the y.layout.hierarchic.Layerer
instance that is used for delegation. |
void |
setOldLayerer(Layerer oldLayerer)
Sets the new 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)
oldLayerer - the old layerer implementation| Method Detail |
|---|
public void assignLayers(LayoutGraph graph,
Layers layers,
LayoutDataProvider ldp)
LayererLayers instance. In order to create new layers, the factory
method Layers.insert(byte, int) must be used.
assignLayers in interface Layerergraph - the graph that contains the nodes that should be distributed
into the layerslayers - the object that will be filled with the results of the
calculationldp - LayoutDataProvider that can be used to query information about
the nodes - note that positional information
(see NodeData.getPosition() and NodeData.getLayer()) cannot
be available at any time.Layers.insert(byte, int),
Layer.add(y.base.Node)public Layerer getOldLayerer()
y.layout.hierarchic.Layerer
instance that is used for delegation.
public void setOldLayerer(Layerer oldLayerer)
NullPointerException - if the argument is nulloldLayerer - the new instance.
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||