public class AsIsSequencer extends Object implements ISequencer
For layout orientation
LayoutOrientation.TOP_TO_BOTTOM
, the order corresponds to that obtain when sorting
the nodes according to their x-coordinate.
An instance of this class can be set to HierarchicLayout
using method FixedElementsSequencer
and FromScratchSequencer
respectively.
Initial graph that will be used as sketch Hierarchic layout when the initial graph is used as sketch
Constructor and Description |
---|
AsIsSequencer()
Creates a new
AsIsSequencer instance. |
Modifier and Type | Method and Description |
---|---|
void |
sequenceNodeLayers(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp,
IItemFactory itemFactory)
Calculates the sequence of the nodes within each layer using the nodes' coordinates.
|
public AsIsSequencer()
AsIsSequencer
instance.public void sequenceNodeLayers(LayoutGraph graph, ILayers layers, ILayoutDataProvider ldp, IItemFactory itemFactory)
This method is called by HierarchicLayoutCore
and finally writes back the calculated sequence using method
ILayer.setNodeOrder(YList)
.
sequenceNodeLayers
in interface ISequencer
graph
- the input graphlayers
- the given ILayers
instance that defines the layering structureldp
- the ILayoutDataProvider
containing information about the nodes and edges of the graphitemFactory
- the IItemFactory
used for creating and destroying helper structures