public interface MagnetStrategy
MagnetStrategy is used by the MagnetController to define how exactly
two ScreenDockWindows behave that are attracting each other.| Modifier and Type | Method and Description |
|---|---|
void |
install(MagnetController controller)
Informs this
MagnetStrategy that it will be used by controller. |
MagnetOperation |
start(MagnetController controller,
MagnetRequest request)
Called by
controller after a ScreenDockWindow moved or changed
its size (or both). |
void |
uninstall(MagnetController controller)
Informs this
MagnetStrategy that it is no longer used by controller. |
void install(MagnetController controller)
MagnetStrategy that it will be used by controller.controller - the controller using this strategy, not nullvoid uninstall(MagnetController controller)
MagnetStrategy that it is no longer used by controller.controller - the controller which no longer uses this strategyMagnetOperation start(MagnetController controller, MagnetRequest request)
controller after a ScreenDockWindow moved or changed
its size (or both). This method creates a new MagnetOperation which is tied to
request. The MagnetOperation will then find out which Dockable
is attracted to which other Dockable.controller - the caller of this method, may be used to find other ScreenDockWindowsrequest - detailed information about the eventCopyright © 2017 Docking Frames. All rights reserved.