| org.netbeans.api.visual.action.ResizeStrategy
All known Subclasses: org.netbeans.modules.visual.action.AlignWithResizeStrategyProvider,
ResizeStrategy | public interface ResizeStrategy (Code) | | This interface provides a resizing strategy.
author: David Kaspar |
boundsSuggested | public Rectangle boundsSuggested(Widget widget, Rectangle originalBounds, Rectangle suggestedBounds, ResizeProvider.ControlPoint controlPoint)(Code) | | Called after an user suggests a new boundary and before the suggested boundary is stored to a specified widget.
This allows to manipulate with a suggested boundary to perform snap-to-grid, locked-axis on any other resizing strategy.
Parameters: widget - the resized widget Parameters: originalBounds - the original bounds of the resizing widget Parameters: suggestedBounds - the bounds of the resizing widget suggested by an user (usually by a mouse cursor position) Parameters: controlPoint - the control point that is used by an user for resizing the new (optionally modified) boundary processed by the strategy |
|
|