public abstract class AbstractBoundaryRestriction extends Object implements BoundaryRestriction
ScreenDockWindows.FREE, HARD, MEDIUM| Constructor and Description |
|---|
AbstractBoundaryRestriction() |
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
check(ScreenDockWindow window)
Calculates the bounds which
window can have. |
Rectangle |
check(ScreenDockWindow window,
Rectangle target)
Calculates the bounds which
window can have. |
protected abstract Rectangle |
checkSize(ScreenDockWindow window)
Checks the size and location of
window |
protected abstract Rectangle |
checkSize(ScreenDockWindow window,
Rectangle target)
Checks the size and location of
window assuming that window will
be give the boundaries target. |
protected Dimension |
getMaximumSize(ScreenDockWindow window)
Finds the maximum size that
window is allowed to have. |
public Rectangle check(ScreenDockWindow window)
BoundaryRestrictionwindow can have.check in interface BoundaryRestrictionwindow - the window whose bounds should be checked.window, can be null
to indicate that the current boundaries are valid.public Rectangle check(ScreenDockWindow window, Rectangle target)
BoundaryRestrictionwindow can have.check in interface BoundaryRestrictionwindow - the window whose future bounds should be checked.target - the bounds window should have, this method
should not write into target.null to indicate that
target is valid.protected abstract Rectangle checkSize(ScreenDockWindow window)
windowwindow - the window whose boundaries are checkednull if the current boundaries of window are validprotected abstract Rectangle checkSize(ScreenDockWindow window, Rectangle target)
window assuming that window will
be give the boundaries target.window - the window whose boundaries are checkedtarget - the boundaries that are requestednull if target is validprotected Dimension getMaximumSize(ScreenDockWindow window)
window is allowed to have.window - the window whose maximum size is searchedCopyright © 2017 Docking Frames. All rights reserved.