C

NodeSizeConstraintProvider

An implementation of INodeSizeConstraintProvider which provides constant sizes.

Members

No filters for this type

Constructors

Creates a new instance using the provided size instances as the initial values.
Not specifying the minimumEnclosedArea will set it to EMPTY.

Parameters

minimumSize: ISize
maximumSize: ISize
minimumEnclosedArea?: IRectangle

Properties

Gets or sets the instance to return by getMaximumSize.
conversionfinal
Gets or sets the instance to return by getMinimumEnclosedArea.
conversionfinal
Gets or sets the instance to return by getMinimumSize.
conversionfinal

Methods

Returns the maximum size allowed for the node whose lookup returned this provider.

Return Value

Size
The maximum size or INFINITE if there is no constraint on the size.
Returns the minimum area that needs to be enclosed by the node whose lookup returned this provider.

Return Value

Rect
The area to enclose or EMPTY if there is no constraint on the size due to an enclosed area.
Returns the minimum size allowed for the node whose lookup returned this provider.

Return Value

Size
The minimum size or EMPTY if there is no constraint on the size.