public interface ResizeStrategy
Modifier and Type | Method and Description |
---|---|
Rectangle |
boundsSuggested(Widget widget,
Rectangle originalBounds,
Rectangle suggestedBounds,
ResizeProvider.ControlPoint controlPoint)
Called after an user suggests a new boundary and before the suggested boundary is stored to a specified widget.
|
Rectangle boundsSuggested(Widget widget, Rectangle originalBounds, Rectangle suggestedBounds, ResizeProvider.ControlPoint controlPoint)
widget
- the resized widgetoriginalBounds
- the original bounds of the resizing widgetsuggestedBounds
- the bounds of the resizing widget suggested by an user (usually by a mouse cursor position)controlPoint
- the control point that is used by an user for resizing