Packagecom.yworks.canvas.input
Interfacepublic interface ISizeConstraintProvider
Implementors SizeConstraintProvider

An interface used by implementations that provide various size constraints for arbitrary items.

See also

SizeConstraintProvider


Public Methods
 MethodDefined By
  
getMaximumSize(item:Object):ISize
Returns the maximum size allowed for the given item.
ISizeConstraintProvider
  
Returns the minimum area that needs to be enclosed by the given item.
ISizeConstraintProvider
  
getMinimumSize(item:Object):ISize
Returns the minimum size allowed for the given item.
ISizeConstraintProvider
Method Detail
getMaximumSize()method
public function getMaximumSize(item:Object):ISize

Returns the maximum size allowed for the given item.

Parameters

item:Object — The item to return the maximum size for.

Returns
ISize — The maximum size or ImmutableSize.UNBOUND if there is no constraint on the size.

See also

getMinimumEnclosedArea()method 
public function getMinimumEnclosedArea(item:Object):IRectangle

Returns the minimum area that needs to be enclosed by the given item.

Parameters

item:Object — The item to return the area for.

Returns
IRectangle — The area to enclose or ImmutableRectangle.EMPTY if there is no constraint on the size due to an enclosed area.

See also

getMinimumSize()method 
public function getMinimumSize(item:Object):ISize

Returns the minimum size allowed for the given item.

Parameters

item:Object — The item to return the minimum size for.

Returns
ISize — The minimum size or ImmutableSize.EMPTY if there is no constraint on the size.

See also