Packagecom.yworks.yfiles.layout
Classpublic class CompositeLayouter
InheritanceCompositeLayouter Inheritance YObject Inheritance Object
Implements Layouter

A layouter that allows to express a layout stage as a chain of more basic layout stages.



Public Properties
 PropertyDefined By
  layoutStages : List
[read-only] Returns the chain of layout stages that make up this composite layout stage.
CompositeLayouter
Public Methods
 MethodDefined By
  
CompositeLayouter(stage:LayoutStage, coreLayouter:Layouter, init:Boolean = true)
Creates a new instance of CompositeLayouter with the specified LayoutStage prepended to the specified Layouter.
CompositeLayouter
  
Appends a stage to the layout pipeline.
CompositeLayouter
  
canLayout(graph:LayoutGraph):Boolean
Returns true if all layout stages and the core layout stage can layout the given graph.
CompositeLayouter
  
doLayout(graph:LayoutGraph):void
Assigns a new graph layout to the given layout graph.
CompositeLayouter
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
CompositeLayouter
 Inherited
hashCode():int
YObject
  
[static] Creates a new instance of CompositeLayouter with the specified LayoutStage prepended to the specified Layouter.
CompositeLayouter
  
Prepends a stage to this composite layout stage.
CompositeLayouter
Protected Methods
 MethodDefined By
  
initCompositeLayouter(stage:LayoutStage, coreLayouter:Layouter):void
Initializes this object.
CompositeLayouter
Property Detail
layoutStagesproperty
layoutStages:List  [read-only]

Returns the chain of layout stages that make up this composite layout stage.


Implementation
    public function get layoutStages():List
Constructor Detail
CompositeLayouter()Constructor
public function CompositeLayouter(stage:LayoutStage, coreLayouter:Layouter, init:Boolean = true)

Creates a new instance of CompositeLayouter with the specified LayoutStage prepended to the specified Layouter.

Parameters
stage:LayoutStage — a LayoutStage that is prepended to the specified core layouter.
 
coreLayouter:Layouter — a Layouter that is used as core (i.e. innermost) layouter for this CompositeLayouter.
 
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
appendStage()method
public function appendStage(stage:LayoutStage):void

Appends a stage to the layout pipeline. Stages added with this method will be invoked just before the core layouter of the composite layout stage will be invoked.

Parameters

stage:LayoutStage

canLayout()method 
public function canLayout(graph:LayoutGraph):Boolean

Returns true if all layout stages and the core layout stage can layout the given graph.

Parameters

graph:LayoutGraph

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

Assigns a new graph layout to the given layout graph.

Parameters

graph:LayoutGraph

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

Returns
Class
initCompositeLayouter()method 
protected final function initCompositeLayouter(stage:LayoutStage, coreLayouter:Layouter):void

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

Parameters

stage:LayoutStage
 
coreLayouter:Layouter

See also

newCompositeLayouter()method 
public static function newCompositeLayouter(stage:LayoutStage, coreLayouter:Layouter):CompositeLayouter

Creates a new instance of CompositeLayouter with the specified LayoutStage prepended to the specified Layouter.

Parameters

stage:LayoutStage — a LayoutStage that is prepended to the specified core layouter.
 
coreLayouter:Layouter — a Layouter that is used as core (i.e. innermost) layouter for this CompositeLayouter.

Returns
CompositeLayouter
prependStage()method 
public function prependStage(stage:LayoutStage):void

Prepends a stage to this composite layout stage. Stage added with this method will be invoked before any other stages will be invoked.

Parameters

stage:LayoutStage