public interface BoundaryRestriction
ScreenDockDialog
, a restriction might be,
that the dialog can't be placed outside the screen.Modifier and Type | Field and Description |
---|---|
static BoundaryRestriction |
FREE
A restriction that allows all boundaries.
|
static BoundaryRestriction |
HARD
A restriction that will ensure that every dialog is always visible on
exactly one screen.
|
static BoundaryRestriction |
MEDIUM
A restriction that will ensure that the title of a dialog cannot be moved
away from the screens.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Rectangle |
check(ScreenDockWindow window)
Calculates the bounds which
window can have. |
java.awt.Rectangle |
check(ScreenDockWindow window,
java.awt.Rectangle target)
Calculates the bounds which
window can have. |
static final BoundaryRestriction FREE
static final BoundaryRestriction MEDIUM
static final BoundaryRestriction HARD
java.awt.Rectangle check(ScreenDockWindow window)
window
can have.window
- the window whose bounds should be checked.window
, can be null
to indicate that the current boundaries are valid.java.awt.Rectangle check(ScreenDockWindow window, java.awt.Rectangle target)
window
can have.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.