An interface used by implementations that provide various size constraints for INodes.
Inheritance Hierarchy
Remarks
Implementations of this interface will be queried from an INode's ILookup.lookup method and should return the size constraints for this node.
See Also
Developer's Guide
API
- NodeSizeConstraintProvider
Demos
- Shows how resizing of nodes can be restricted.
Members
No filters for this type
Methods
Returns the maximum size allowed for the node whose lookup returned this provider.
Returns the maximum size allowed for the node whose lookup returned this provider.
abstract
Return Value
- Size
- The maximum size or Size.INFINITE if there is no constraint on the size.
See Also
Developer's Guide
Implemented in
NodeSizeConstraintProvider.getMaximumSizeReturns the minimum area that needs to be enclosed by the node whose lookup returned this provider.
Returns the minimum area that needs to be enclosed by the node whose lookup returned this provider.
abstract
Return Value
- Rect
- The area to enclose or Rect.EMPTY if there is no constraint on the size due to an enclosed area.
See Also
Developer's Guide
Implemented in
NodeSizeConstraintProvider.getMinimumEnclosedAreaReturns the minimum size allowed for the node whose lookup returned this provider.
Returns the minimum size allowed for the node whose lookup returned this provider.
abstract
Return Value
- Size
- The minimum size or Size.EMPTY if there is no constraint on the size.
See Also
Developer's Guide
Implemented in
NodeSizeConstraintProvider.getMinimumSizeStatic Methods
Creates an implementation of the interface INodeSizeConstraintProvider from the given definition.
Creates an implementation of the interface INodeSizeConstraintProvider from the given definition.
The given object must contain exactly the abstract members of the INodeSizeConstraintProvider interface. No member may be omitted and no additional members can be added. While additional custom members can later be added directly on the instance, this is discouraged.
static
Parameters
Return Value
- INodeSizeConstraintProvider
- An instance of the INodeSizeConstraintProvider interface based on the given definition.