public class MediumBoundaryRestriction extends AbstractBoundaryRestriction
FREE, HARD, MEDIUM| Constructor and Description |
|---|
MediumBoundaryRestriction() |
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
checkSize(ScreenDockWindow window)
Checks the size and location of
window |
Rectangle |
checkSize(ScreenDockWindow window,
Rectangle target)
Checks the size and location of
window assuming that window will
be give the boundaries target. |
protected Rectangle |
findDevice(int x,
int y)
Finds and returns the boundaries of the screen in which
x/y are. |
protected Dimension |
getMinimumSize(ScreenDockWindow window)
Gets the minimum size of
window, the default implementation just calls
ScreenDockWindow.getMinimumWindowSize(), but subclasses may override this method
to use another algorithm for finding the minimum window size. |
protected Rectangle |
validate(ScreenDockWindow window,
Rectangle target,
Point center,
Point search)
Ensures that
center will be in a visible part of the screen. |
check, check, getMaximumSizepublic Rectangle checkSize(ScreenDockWindow window)
AbstractBoundaryRestrictionwindowcheckSize in class AbstractBoundaryRestrictionwindow - the window whose boundaries are checkednull if the current boundaries of window are validpublic Rectangle checkSize(ScreenDockWindow window, Rectangle target)
AbstractBoundaryRestrictionwindow assuming that window will
be give the boundaries target.checkSize in class AbstractBoundaryRestrictionwindow - the window whose boundaries are checkedtarget - the boundaries that are requestednull if target is validprotected Rectangle validate(ScreenDockWindow window, Rectangle target, Point center, Point search)
center will be in a visible part of the screen.window - the window whose boundaries are checkedtarget - the next boundaries for a windowcenter - the point that should remain visiblesearch - the point used to find the best matching screen devicetarget as possibleprotected Dimension getMinimumSize(ScreenDockWindow window)
window, the default implementation just calls
ScreenDockWindow.getMinimumWindowSize(), but subclasses may override this method
to use another algorithm for finding the minimum window size.window - the window whose minimum size is requirednullprotected Rectangle findDevice(int x, int y)
x/y are.x - some x coordinatey - some y coordinatex/y or nullCopyright © 2017 Docking Frames. All rights reserved.