public interface MagnetizedOperation
ScreenDockWindow
s to calculate the attraction between two
ScreenDockWindow
s.Modifier and Type | Method and Description |
---|---|
Rectangle |
attract(Rectangle bounds)
To be called by a
ScreenDockWindow if the user updates the size or
location of the window. |
void |
stop()
To be called by a
ScreenDockWindow once moving or resizing is finished. |
Rectangle attract(Rectangle bounds)
ScreenDockWindow
if the user updates the size or
location of the window. This method calculates then to which other windows
an attraction may exist.bounds
- the boundaries the window would have if the operation would stop
right now.null
void stop()
ScreenDockWindow
once moving or resizing is finished.