bibliothek.gui.dock.station.screen.magnet
Interface MagnetOperation

All Known Implementing Classes:
DefaultMagnetOperation

public interface MagnetOperation

Creates by a MagnetStrategy, this operation is created once movement or resizing of a ScreenDockWindow started and exists until this operation stopped.

Author:
Benjamin Sigg

Method Summary
 void attract(MagnetController controller, MagnetRequest request)
          Called by controller after a ScreenDockWindow moved or changed its size (or both).
 void destroy()
          Called once the operation is no longer needed.
 

Method Detail

attract

void attract(MagnetController controller,
             MagnetRequest request)
Called by controller after a ScreenDockWindow moved or changed its size (or both). This method has to find out whether the window is attracted to another window and if so it must call one of the attract methods of request.

Parameters:
controller - the caller of this method, may be used to find other ScreenDockWindows
request - detailed information about the event

destroy

void destroy()
Called once the operation is no longer needed.