Search this API

y.layout.hierarchic.incremental
Class AsIsSequencer

java.lang.Object
  extended by y.layout.hierarchic.incremental.AsIsSequencer
All Implemented Interfaces:
Sequencer

public class AsIsSequencer
extends Object
implements Sequencer

Sequencer implementation that returns a sequencing that corresponds to the current drawing.


Constructor Summary
AsIsSequencer()
          Creates a new AsIsSequencer
 
Method Summary
 void sequenceNodeLayers(LayoutGraph g, Layers layers, LayoutDataProvider ldp, ItemFactory itemFactory)
          Called by HierarchicLayouter during the second phase.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsIsSequencer

public AsIsSequencer()
Creates a new AsIsSequencer

Method Detail

sequenceNodeLayers

public void sequenceNodeLayers(LayoutGraph g,
                               Layers layers,
                               LayoutDataProvider ldp,
                               ItemFactory itemFactory)
Description copied from interface: Sequencer
Called by 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.

Specified by:
sequenceNodeLayers in interface Sequencer
Parameters:
g - the graph that contains the elements from layers
layers - the Layer implementation that holds the Layers for sequencing
ldp - 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.