Package | com.yworks.canvas.input |
Class | public class SizeConstraintProvider |
Inheritance | SizeConstraintProvider Object |
Implements | ISizeConstraintProvider |
ISizeConstraintProvider
Property | Defined By | ||
---|---|---|---|
maximumSize : ISize
Gets or sets the instance to be returned by getMaximumSize(). | SizeConstraintProvider | ||
minimumEnclosedArea : IRectangle
Gets or sets the instance to be returned by getMinimumEnclosedArea(). | SizeConstraintProvider | ||
minimumSize : ISize
Gets or sets the instance to be returned by getMinimumSize(). | SizeConstraintProvider |
Method | Defined By | ||
---|---|---|---|
Creates a new instance using the provided size instances as the initial values. | SizeConstraintProvider | ||
getMaximumSize(item:Object):ISize
Returns the maximum size allowed for the given item. | SizeConstraintProvider | ||
getMinimumEnclosedArea(item:Object):IRectangle
Returns the minimum area that needs to be enclosed by the given item. | SizeConstraintProvider | ||
getMinimumSize(item:Object):ISize
Returns the minimum size allowed for the given item. | SizeConstraintProvider |
maximumSize | property |
maximumSize:ISize
Gets or sets the instance to be returned by getMaximumSize()
.
public function get maximumSize():ISize
public function set maximumSize(value:ISize):void
minimumEnclosedArea | property |
minimumEnclosedArea:IRectangle
Gets or sets the instance to be returned by getMinimumEnclosedArea()
.
public function get minimumEnclosedArea():IRectangle
public function set minimumEnclosedArea(value:IRectangle):void
minimumSize | property |
minimumSize:ISize
Gets or sets the instance to be returned by getMinimumSize()
.
public function get minimumSize():ISize
public function set minimumSize(value:ISize):void
SizeConstraintProvider | () | Constructor |
public function SizeConstraintProvider(minimumSize:ISize, maximumSize:ISize, minimumEnclosedArea:IRectangle = null)
Creates a new instance using the provided size instances as the initial values.
ParametersminimumSize:ISize — The minimum size.
| |
maximumSize:ISize — The maximum size.
| |
minimumEnclosedArea:IRectangle (default = null ) — The minimum enclosed area. If this parameter is not used,
ImmutableRectangle.EMPTY will be used.
|
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.
|
ISize — The maximum size or ImmutableSize.UNBOUND if there is no constraint on the size.
|
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.
|
IRectangle — The area to enclose or ImmutableRectangle.EMPTY if there is no constraint on the size due to an enclosed area.
|
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.
|
ISize — The minimum size or ImmutableSize.EMPTY if there is no constraint on the size.
|