|
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.GivenSequenceSequencer
public class GivenSequenceSequencer
This class is a Sequencer implementation that determines the sequence of nodes of the same layer
based on a given comparator constraint.
![]() |
![]() |
| Constructor Summary | |
|---|---|
GivenSequenceSequencer()
Creates a new instance of GivenSequenceSequencer. |
|
GivenSequenceSequencer(java.util.Comparator c)
Creates a new instance of GivenSequenceSequencer using a given Comparator for the sequencing. |
|
| Method Summary | |
|---|---|
java.util.Comparator |
getSequenceComparator()
Returns the Comparator used by this GivenSequenceSequencer to determine the sequence of the nodes. |
void |
sequenceNodeLayers(LayoutGraph graph,
Layers layers,
LayoutDataProvider ldp,
ItemFactory itemFactory)
Calculates the sequence of the nodes within a Layers instance based on the given Comparator
instance. |
void |
setSequenceComparator(java.util.Comparator sequenceComparator)
Specifies the Comparator used by this GivenSequenceSequencer to determine the sequence of the nodes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GivenSequenceSequencer()
GivenSequenceSequencer.
public GivenSequenceSequencer(java.util.Comparator c)
GivenSequenceSequencer using a given Comparator for the sequencing.
| Method Detail |
|---|
public java.util.Comparator getSequenceComparator()
Comparator used by this GivenSequenceSequencer to determine the sequence of the nodes.
Comparator instancesetSequenceComparator(Comparator)public void setSequenceComparator(java.util.Comparator sequenceComparator)
Comparator used by this GivenSequenceSequencer to determine the sequence of the nodes.
Comparator is specified.sequenceComparator - the given Comparator instance
public void sequenceNodeLayers(LayoutGraph graph,
Layers layers,
LayoutDataProvider ldp,
ItemFactory itemFactory)
Layers instance based on the given Comparator
instance.
This method is called by HierarchicLayouter during the sequencing phase and finally writes back the
calculated sequence using the Layer.setNodeOrder(y.base.YList) method.
sequenceNodeLayers in interface Sequencergraph - the input graphlayers - the given Layers instance containing the elements of the layersldp - the LayoutDataProvider containing information about the nodes and edges of the graphitemFactory - the ItemFactory used for creating and destroying helper structures
|
© Copyright 2000-2025, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||