| org.netbeans.api.visual.action.MoveProvider
All known Subclasses: org.netbeans.modules.visual.action.AlignWithMoveStrategyProvider,
MoveProvider | public interface MoveProvider (Code) | | This interface controls move action.
author: David Kaspar |
getOriginalLocation | Point getOriginalLocation(Widget widget)(Code) | | Called to acquire a origin location against which the movement will be calculated.
Usually it is a value of the Widget.getLocation method.
Parameters: widget - the moving widget the origin location |
movementFinished | void movementFinished(Widget widget)(Code) | | Called to notify about the end of movement of a specified widget.
Parameters: widget - the moved widget |
movementStarted | void movementStarted(Widget widget)(Code) | | Called to nofity about the start of movement of a specified widget.
Parameters: widget - the moving widget |
setNewLocation | void setNewLocation(Widget widget, Point location)(Code) | | Called to set a new location of a moved widget. The new location is based on the location returned by getOriginalLocation method.
Usually it is implemented as the Widget.setPreferredLocation method call.
Parameters: widget - the moved widget Parameters: location - the new location |
|
|