Packagecom.yworks.yfiles.layout.grouping
Classpublic class MinimumSizeGroupBoundsCalculator
InheritanceMinimumSizeGroupBoundsCalculator Inheritance InsetsGroupBoundsCalculator Inheritance YObject Inheritance Object

This subclass of com.yworks.yfiles.layout.grouping.InsetsGroupBoundsCalculator does not only allow custom insets for each group node, but also makes sure to keep provided minimum sizes registered for each node that are provided through a DataProvider which must be registered with the graph prior to the invocation of the layout algorithm. By default com.yworks.yfiles.layout.grouping.GroupingKeys.MINIMUM_NODE_SIZE_DPKEY is used as the data provider key, but one can also determine another using the according constructor or method minimumNodeSizeDPKey .

See also

com.yworks.yfiles.layout.grouping.InsetsGroupBoundsCalculator
com.yworks.yfiles.layout.grouping.GroupingKeys.MINIMUM_NODE_SIZE_DPKEY
minimumNodeSizeDPKey


Public Properties
 PropertyDefined By
 InheritedconsiderEdgeLabels : Boolean
Specifies whether the bounds calculation for group nodes takes labels of the group's content edges into account.
InsetsGroupBoundsCalculator
 InheritedconsiderNodeHalos : Boolean
Specifies whether the bounds calculation for group nodes should take node halos of the group's content nodes into account.
InsetsGroupBoundsCalculator
 InheritedconsiderNodeLabelsEnabled : Boolean
Specifies whether the bounds calculation for group nodes should take labels of the group's content nodes into account.
InsetsGroupBoundsCalculator
 InheriteddefaultInsets : Insets
Specifies the default insets.
InsetsGroupBoundsCalculator
  defaultMinimumNodeSize : YDimension
Specifies the default minimum size for nodes.
MinimumSizeGroupBoundsCalculator
 InheritedgroupNodeInsetsDPKey : Object
Specifies the DataProvider key that is used to get the insets for the nodes.
InsetsGroupBoundsCalculator
  minimumNodeSizeDPKey : Object
Specifies the DataProvider key that is used to get the minimum sizes for the nodes.
MinimumSizeGroupBoundsCalculator
  xAlignment : Number
Specifies a value that describes how the node will be resized horizontally if the calculated width of com.yworks.yfiles.layout.grouping.InsetsGroupBoundsCalculator is smaller than the minimal width that is provided for the node.
MinimumSizeGroupBoundsCalculator
  yAlignment : Number
Specifies a value that describes how the node will be resized vertically if the calculated height of com.yworks.yfiles.layout.grouping.InsetsGroupBoundsCalculator is smaller than the minimal height that is provided for the node.
MinimumSizeGroupBoundsCalculator
Public Methods
 MethodDefined By
  
Constructs an instance that uses the minimum size provided through the data provider registered at the input graph with the public key com.yworks.yfiles.layout.grouping.GroupingKeys.MINIMUM_NODE_SIZE_DPKEY.
MinimumSizeGroupBoundsCalculator
  
[override]
MinimumSizeGroupBoundsCalculator
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
MinimumSizeGroupBoundsCalculator
 Inherited
hashCode():int
YObject
 Inherited
[static] Constructs an instance that uses insets provided through the data provider registered at the input graph with the public key com.yworks.yfiles.layout.grouping.GroupingKeys.GROUP_NODE_INSETS_DPKEY.
InsetsGroupBoundsCalculator
 Inherited
[static] Constructs an instance that uses the specified insets as the default if the data provider contains no insets information for a specific node.
InsetsGroupBoundsCalculator
 Inherited
[static] Constructs an instance using the given DataProvider key.
InsetsGroupBoundsCalculator
 Inherited
newInsetsGroupBoundsCalculator4(insetsDataProviderKey:Object, defaultInsets:Insets):InsetsGroupBoundsCalculator
[static] Constructs an instance using the given DataProvider key and default insets.
InsetsGroupBoundsCalculator
  
[static] Constructs an instance that uses the minimum size provided through the data provider registered at the input graph with the public key com.yworks.yfiles.layout.grouping.GroupingKeys.MINIMUM_NODE_SIZE_DPKEY.
MinimumSizeGroupBoundsCalculator
  
[static] Constructs an instance using the given DataProvider key.
MinimumSizeGroupBoundsCalculator
Protected Methods
 MethodDefined By
 Inherited
This method enlarges the given graph bounds by the insets associated with the given group node.
InsetsGroupBoundsCalculator
 Inherited
Calculates and returns the united bounds of the given nodes only, no labels or adjacent edges are considered.
InsetsGroupBoundsCalculator
 Inherited
Initializes this object.
InsetsGroupBoundsCalculator
 Inherited
Initializes this object.
InsetsGroupBoundsCalculator
 Inherited
initInsetsGroupBoundsCalculator3(insetsDataProviderKey:Object):void
Initializes this object.
InsetsGroupBoundsCalculator
 Inherited
initInsetsGroupBoundsCalculator4(insetsDataProviderKey:Object, defaultInsets:Insets):void
Initializes this object.
InsetsGroupBoundsCalculator
  
Initializes this object.
MinimumSizeGroupBoundsCalculator
  
initMinimumSizeGroupBoundsCalculator2(minSizeDataProviderKey:Object):void
Initializes this object.
MinimumSizeGroupBoundsCalculator
Property Detail
defaultMinimumNodeSizeproperty
defaultMinimumNodeSize:YDimension

Specifies the default minimum size for nodes.

By default this is a YDimension with length 0 and width 0.


Implementation
    public function get defaultMinimumNodeSize():YDimension
    public function set defaultMinimumNodeSize(value:YDimension):void
minimumNodeSizeDPKeyproperty 
minimumNodeSizeDPKey:Object

Specifies the DataProvider key that is used to get the minimum sizes for the nodes.


Implementation
    public function get minimumNodeSizeDPKey():Object
    public function set minimumNodeSizeDPKey(value:Object):void
xAlignmentproperty 
xAlignment:Number

Specifies a value that describes how the node will be resized horizontally if the calculated width of com.yworks.yfiles.layout.grouping.InsetsGroupBoundsCalculator is smaller than the minimal width that is provided for the node. The default value is 0.5, which means the node will grow equally to the left and to the right, while the center stays put.


Implementation
    public function get xAlignment():Number
    public function set xAlignment(value:Number):void

See also

yAlignmentproperty 
yAlignment:Number

Specifies a value that describes how the node will be resized vertically if the calculated height of com.yworks.yfiles.layout.grouping.InsetsGroupBoundsCalculator is smaller than the minimal height that is provided for the node. The default value is 0.5, which means the node will grow equally upwards and downwards, while the center stays put.


Implementation
    public function get yAlignment():Number
    public function set yAlignment(value:Number):void

See also

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

Constructs an instance that uses the minimum size provided through the data provider registered at the input graph with the public key com.yworks.yfiles.layout.grouping.GroupingKeys.MINIMUM_NODE_SIZE_DPKEY.

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.

See also

Method Detail
calculateBounds()method
override public function calculateBounds(graph:LayoutGraph, groupNode:Node, children:NodeList):Rectangle2D

Parameters

graph:LayoutGraph
 
groupNode:Node
 
children:NodeList

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

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

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

See also

initMinimumSizeGroupBoundsCalculator2()method 
protected final function initMinimumSizeGroupBoundsCalculator2(minSizeDataProviderKey:Object):void

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

Parameters

minSizeDataProviderKey:Object

See also

newMinimumSizeGroupBoundsCalculator1()method 
public static function newMinimumSizeGroupBoundsCalculator1():MinimumSizeGroupBoundsCalculator

Constructs an instance that uses the minimum size provided through the data provider registered at the input graph with the public key com.yworks.yfiles.layout.grouping.GroupingKeys.MINIMUM_NODE_SIZE_DPKEY.

Returns
MinimumSizeGroupBoundsCalculator

See also

newMinimumSizeGroupBoundsCalculator2()method 
public static function newMinimumSizeGroupBoundsCalculator2(minSizeDataProviderKey:Object):MinimumSizeGroupBoundsCalculator

Constructs an instance using the given DataProvider key.

Parameters

minSizeDataProviderKey:Object — a DataProvider key that is used to get the minimum sizes for the nodes.

Returns
MinimumSizeGroupBoundsCalculator