|
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.GivenSequenceSequencer
public class GivenSequenceSequencer
This LayerSequencer implementation returns a sequencing that satisfies a comparator constraint.
Constructor Summary | |
---|---|
GivenSequenceSequencer()
Creates a new instance of GivenSequenceSequencer |
|
GivenSequenceSequencer(Comparator c)
Creates a new instance of GivenSequenceSequencer using the specified comparator for the sequencing. |
Method Summary | |
---|---|
Comparator |
getSequenceComparator()
Returns the comparator used by this GivenSequenceSequencer . |
void |
sequenceNodeLayers(LayoutGraph graph,
Layers layers,
LayoutDataProvider ldp,
ItemFactory itemFactory)
Called by HierarchicLayouter during the second phase. |
void |
setSequenceComparator(Comparator sequenceComparator)
Sets the comparator used by this GivenSequenceSequencer . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GivenSequenceSequencer()
public GivenSequenceSequencer(Comparator c)
Method Detail |
---|
public Comparator getSequenceComparator()
GivenSequenceSequencer
.
GivenSequenceSequencer
.public void setSequenceComparator(Comparator sequenceComparator)
GivenSequenceSequencer
.
sequenceComparator
- the comparator used by this GivenSequenceSequencer
.public void sequenceNodeLayers(LayoutGraph graph, Layers layers, LayoutDataProvider ldp, ItemFactory itemFactory)
Sequencer
HierarchicLayouter
during the second phase.
Calculates a sequence of the nodes in layers
and finally
writes back the calculated sequence using the Layer.setNodeOrder(y.base.YList)
method.
sequenceNodeLayers
in interface Sequencer
graph
- the graph that contains the elements from layers
layers
- the Layer implementation that holds the Layers for sequencingldp
- the LayoutDataProvider that provides the necessary NodeData
and EdgeData
itemFactory
- an ItemFactory implementation that can be used to modify the
graph consistently
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |