Packagecom.yworks.yfiles.layout.organic
Classpublic class OrganicPartitionGridLayoutStage
InheritanceOrganicPartitionGridLayoutStage Inheritance AbstractLayoutStage Inheritance YObject Inheritance Object

Layout stage that is used for handling a given partition grid structure that is attached to a graph with DataProvider com.yworks.yfiles.layout.grid.PartitionGrid.PARTITION_GRID_DPKEY.

Note: the com.yworks.yfiles.layout.organic.SmartOrganicLayouter automatically uses this stage if required.

Note: if there is a partition grid structure, this layout stage throws an WrongGraphStructure if there are group nodes whose content span multiple grid cells or if the associated group node mode data (see com.yworks.yfiles.layout.organic.SmartOrganicLayouter.GROUP_NODE_MODE_DATA) is equals to com.yworks.yfiles.layout.organic.SmartOrganicLayouter.GROUP_NODE_MODE_FIX_BOUNDS or com.yworks.yfiles.layout.organic.SmartOrganicLayouter.GROUP_NODE_MODE_FIX_CONTENTS.

See also

com.yworks.yfiles.layout.grid.PartitionGrid
com.yworks.yfiles.layout.grid.PartitionGrid.PARTITION_GRID_DPKEY
com.yworks.yfiles.layout.organic.SmartOrganicLayouter
com.yworks.yfiles.layout.organic.SmartOrganicLayouter.GROUP_NODE_MODE_DATA
com.yworks.yfiles.layout.organic.SmartOrganicLayouter.GROUP_NODE_MODE_FIX_BOUNDS
com.yworks.yfiles.layout.organic.SmartOrganicLayouter.GROUP_NODE_MODE_FIX_CONTENTS


Public Properties
 PropertyDefined By
 InheritedcoreLayouter : Layouter
Specifies the core layouter.
AbstractLayoutStage
Public Methods
 MethodDefined By
  
OrganicPartitionGridLayoutStage(core:Layouter, init:Boolean = true)
OrganicPartitionGridLayoutStage
  
canLayout(graph:LayoutGraph):Boolean
[override]
OrganicPartitionGridLayoutStage
  
doLayout(graph:LayoutGraph):void
[override]
OrganicPartitionGridLayoutStage
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
OrganicPartitionGridLayoutStage
 Inherited
hashCode():int
YObject
  
[static]
OrganicPartitionGridLayoutStage
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
  
Initializes this object.
OrganicPartitionGridLayoutStage
Constructor Detail
OrganicPartitionGridLayoutStage()Constructor
public function OrganicPartitionGridLayoutStage(core:Layouter, init:Boolean = true)

Parameters
core:Layouter
 
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
canLayout()method
override public function canLayout(graph:LayoutGraph):Boolean

Parameters

graph:LayoutGraph

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

Parameters

graph:LayoutGraph

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

Returns
Class
initOrganicPartitionGridLayoutStage1()method 
protected final function initOrganicPartitionGridLayoutStage1(core:Layouter):void

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

Parameters

core:Layouter

See also

newOrganicPartitionGridLayoutStage1()method 
public static function newOrganicPartitionGridLayoutStage1(core:Layouter):OrganicPartitionGridLayoutStage

Parameters

core:Layouter

Returns
OrganicPartitionGridLayoutStage