public class InternalBoundaryRestriction extends Object implements BoundaryRestriction
JDesktopPane
. It makes sure that the top border part of a
window is always visible.InternalScreenDockWindowFactory
FREE, HARD, MEDIUM
Constructor and Description |
---|
InternalBoundaryRestriction(JDesktopPane desktop) |
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 Rectangle |
validate(Rectangle destination,
Point center) |
public InternalBoundaryRestriction(JDesktopPane desktop)
public Rectangle check(ScreenDockWindow window)
BoundaryRestriction
window
can have.check
in interface BoundaryRestriction
window
- 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)
BoundaryRestriction
window
can have.check
in interface BoundaryRestriction
window
- 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.