Packagecom.yworks.yfiles.layout
Classpublic class MinNodeSizeStage
InheritanceMinNodeSizeStage Inheritance AbstractLayoutStage Inheritance YObject Inheritance Object

This layout stage enforces a given minimum width/height of the nodes of a graph during the layout process. Therefore it temporarily enlarges nodes whose width/height fall below the specified minimum values.



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

Instantiates a new MinNodeSizeStage that wraps the given core layouter. The minimum width/height of nodes is set to 1.

Parameters
core:Layouter — The 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.

See also

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
initMinNodeSizeStage1()method 
protected final function initMinNodeSizeStage1(core:Layouter):void

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

Parameters

core:Layouter

See also

initMinNodeSizeStage2()method 
protected final function initMinNodeSizeStage2(core:Layouter, minWidth:Number, minHeight:Number):void

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

Parameters

core:Layouter
 
minWidth:Number
 
minHeight:Number

See also

newMinNodeSizeStage1()method 
public static function newMinNodeSizeStage1(core:Layouter):MinNodeSizeStage

Instantiates a new MinNodeSizeStage that wraps the given core layouter. The minimum width/height of nodes is set to 1.

Parameters

core:Layouter — The core layouter.

Returns
MinNodeSizeStage

See also

newMinNodeSizeStage2()method 
public static function newMinNodeSizeStage2(core:Layouter, minWidth:Number, minHeight:Number):MinNodeSizeStage

Instantiates a new MinNodeSizeStage that wraps the given core layouter.

Parameters

core:Layouter — The core layouter.
 
minWidth:Number — The minimum width of nodes that should be enforced.
 
minHeight:Number — The minimum height of nodes that should be enforced.

Returns
MinNodeSizeStage