|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.hierarchic.incremental.TopologicalIncrementalLayerer
public class TopologicalIncrementalLayerer
Inserts nodes incrementally into an existing layer structure, without destroying the latter. Nodes are inserted such that the length of backwards 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 IncrementalLayerer |
Method Summary | |
---|---|
void |
assignLayers(LayoutGraph graph,
Layers layers,
LayoutDataProvider ldp)
Calculates an optimal layering for incremental nodes |
LayeredComponentsMerger |
getLayeredComponentsMerger()
Returns the LayeredComponentsMerger instance that will be used to
merge 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)
Sets the LayeredComponentsMerger instance that will be used to
merge the layers of separate components into the current layering. |
void |
setSeparateComponentsLayerer(Layerer separateComponentsLayerer)
Sets 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()
Method Detail |
---|
public void assignLayers(LayoutGraph graph, Layers layers, LayoutDataProvider ldp)
assignLayers
in interface Layerer
graph
- the graph containing all nodes in layers and all nodes in incrementalNodes as
well as the respective edges.layers
- the Layers structure containing all nodes but the incremental ones.ldp
- 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 getSeparateComponentsLayerer()
Layerer
instance used for the layering of separate
components.
Default is an instance of OldLayererWrapper
wrapping a
WeightedLayerer
.
public void setSeparateComponentsLayerer(Layerer separateComponentsLayerer)
Layerer
instance used for the layering of separate
components.
separateComponentsLayerer
- the layerer instance for the layering
of separate components.public LayeredComponentsMerger getLayeredComponentsMerger()
LayeredComponentsMerger
instance that will be used to
merge the layers of separate components into the current layering.
Default is DefaultLayeredComponentsMerger
public void setLayeredComponentsMerger(LayeredComponentsMerger layeredComponentsMerger)
LayeredComponentsMerger
instance that will be used to
merge the layers of separate components into the current layering.
layeredComponentsMerger
- the new merger
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |