public class InternalBoundaryRestriction extends Object implements BoundaryRestriction
JDesktopPane. It makes sure that the top border part of a
window is always visible.InternalScreenDockWindowFactoryFREE, 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)
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.Copyright © 2017 Docking Frames. All rights reserved.