Packagecom.yworks.yfiles.layout
Classpublic class PartitionLayouter
InheritancePartitionLayouter Inheritance AbstractLayoutStage Inheritance YObject Inheritance Object
Subclasses CompactOrthogonalLayouter

This layout stage provides a framework for layouts that are based on a divide and conquer approach. The workings of this stage is subdivided into four stages:
  1. The input graph is partitioned into smaller units. Implementations of this phase can be set using method partitionFinder.
  2. Optionally, the graph partitions are laid out by an layout algorithm. Implementations of this phase can be set using method coreLayouter.
  3. The graph partitions are independently arranged. Implementations of this phase can be set using method partitionPlacer.
  4. Edges that connect nodes in different graph partitions will be routed. Implementations of this phase can be set using method interEdgeRouter

See also

partitionFinder
coreLayouter
partitionPlacer
interEdgeRouter


Public Properties
 PropertyDefined By
 InheritedcoreLayouter : Layouter
Specifies the core layouter.
AbstractLayoutStage
  interEdgeRouter : PartitionLayouter_InterEdgeRouter
Getter: Returns the currently set InterEdgeRouter instance.
PartitionLayouter
  partitionFinder : PartitionLayouter_PartitionFinder
Getter: Returns the currently set PartitionFinder instance.
PartitionLayouter
  partitionPlacer : PartitionLayouter_PartitionPlacer
Getter: Returns the currently set PartitionPlacer instance.
PartitionLayouter
Public Methods
 MethodDefined By
  
PartitionLayouter(init:Boolean = true)
PartitionLayouter
  
canLayout(graph:LayoutGraph):Boolean
[override] Returns canLayoutCore().
PartitionLayouter
  
doLayout(graph:LayoutGraph):void
[override] Main layout routine that assigns new layout information to the given graph.
PartitionLayouter
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
PartitionLayouter
 Inherited
hashCode():int
YObject
  
[static]
PartitionLayouter
Protected Methods
 MethodDefined By
 Inherited
canLayoutCore(graph:LayoutGraph):Boolean
Queries the core layouter whether or not the given graph can be laid out.
AbstractLayoutStage
 Inherited
Invokes the layout routine of the core layouter.
AbstractLayoutStage
 Inherited
AbstractLayoutStage
 Inherited
AbstractLayoutStage
  
PartitionLayouter
Property Detail
interEdgeRouterproperty
interEdgeRouter:PartitionLayouter_InterEdgeRouter

Getter: Returns the currently set InterEdgeRouter instance.

Setter: Sets the InterEdgeRouter instance to use.


Implementation
    public function get interEdgeRouter():PartitionLayouter_InterEdgeRouter
    public function set interEdgeRouter(value:PartitionLayouter_InterEdgeRouter):void
partitionFinderproperty 
partitionFinder:PartitionLayouter_PartitionFinder

Getter: Returns the currently set PartitionFinder instance.

Setter: Sets the PartitionFinder instance to use.


Implementation
    public function get partitionFinder():PartitionLayouter_PartitionFinder
    public function set partitionFinder(value:PartitionLayouter_PartitionFinder):void
partitionPlacerproperty 
partitionPlacer:PartitionLayouter_PartitionPlacer

Getter: Returns the currently set PartitionPlacer instance.

Setter: Sets the PartitionPlacer instance to use.


Implementation
    public function get partitionPlacer():PartitionLayouter_PartitionPlacer
    public function set partitionPlacer(value:PartitionLayouter_PartitionPlacer):void
Constructor Detail
PartitionLayouter()Constructor
public function PartitionLayouter(init:Boolean = true)



Parameters
init:Boolean (default = true)
Method Detail
canLayout()method
override public function canLayout(graph:LayoutGraph):Boolean

Returns canLayoutCore().

Parameters

graph:LayoutGraph

Returns
Boolean

See also

doLayout()method 
override public function doLayout(graph:LayoutGraph):void

Main layout routine that assigns new layout information to the given graph.

Parameters

graph:LayoutGraph

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

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

newPartitionLayouter()method 
public static function newPartitionLayouter():PartitionLayouter

Returns
PartitionLayouter