Packagecom.yworks.yfiles.layout.hierarchic.incremental
Classpublic class TopologicalIncrementalLayerer
InheritanceTopologicalIncrementalLayerer Inheritance YObject Inheritance Object
Implements Layerer

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.



Public Properties
 PropertyDefined By
  layeredComponentsMerger : LayeredComponentsMerger
Specifies the com.yworks.yfiles.layout.hierarchic.incremental.LayeredComponentsMerger instance that will be used to merge the layers of separate components into the current layering.
TopologicalIncrementalLayerer
  separateComponentsLayerer : Layerer
Specifies the com.yworks.yfiles.layout.hierarchic.incremental.Layerer instance used for the layering of separate components.
TopologicalIncrementalLayerer
Public Methods
 MethodDefined By
  
TopologicalIncrementalLayerer(init:Boolean = true)
Creates a new instance of IncrementalLayerer
TopologicalIncrementalLayerer
  
Calculates an optimal layering for incremental nodes
TopologicalIncrementalLayerer
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
TopologicalIncrementalLayerer
 Inherited
hashCode():int
YObject
  
[static] Creates a new instance of IncrementalLayerer
TopologicalIncrementalLayerer
Protected Methods
 MethodDefined By
  
Initializes this object.
TopologicalIncrementalLayerer
Property Detail
layeredComponentsMergerproperty
layeredComponentsMerger:LayeredComponentsMerger

Specifies the com.yworks.yfiles.layout.hierarchic.incremental.LayeredComponentsMerger instance that will be used to merge the layers of separate components into the current layering. Default is com.yworks.yfiles.layout.hierarchic.incremental.DefaultLayeredComponentsMerger


Implementation
    public function get layeredComponentsMerger():LayeredComponentsMerger
    public function set layeredComponentsMerger(value:LayeredComponentsMerger):void

See also

separateComponentsLayererproperty 
separateComponentsLayerer:Layerer

Specifies the com.yworks.yfiles.layout.hierarchic.incremental.Layerer instance used for the layering of separate components. Default is an instance of com.yworks.yfiles.layout.hierarchic.incremental.OldLayererWrapper wrapping a com.yworks.yfiles.layout.hierarchic.WeightedLayerer.


Implementation
    public function get separateComponentsLayerer():Layerer
    public function set separateComponentsLayerer(value:Layerer):void

See also

Constructor Detail
TopologicalIncrementalLayerer()Constructor
public function TopologicalIncrementalLayerer(init:Boolean = true)

Creates a new instance of IncrementalLayerer

Parameters
init:Boolean (default = true) — An internally used switch to help handle proper instance initialization in inheritance chains where classes can have multiple constructor-like factory methods. This parameter can safely be ignored/omitted when calling the constructor.
Method Detail
assignLayers()method
public function assignLayers(graph:LayoutGraph, layers:Layers, ldp:LayoutDataProvider):void

Calculates an optimal layering for incremental nodes

Parameters

graph:LayoutGraph — the graph containing all nodes in layers and all nodes in incrementalNodes as well as the respective edges.
 
layers:Layers — the Layers structure containing all nodes but the incremental ones.
 
ldp:LayoutDataProvider

getClass()method 
override public function getClass():Class

Returns
Class
initTopologicalIncrementalLayerer()method 
protected final function initTopologicalIncrementalLayerer():void

Initializes this object. See the documentation of the corresponding factory method newTopologicalIncrementalLayerer() for details.

See also

newTopologicalIncrementalLayerer()method 
public static function newTopologicalIncrementalLayerer():TopologicalIncrementalLayerer

Creates a new instance of IncrementalLayerer

Returns
TopologicalIncrementalLayerer