|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.station.screen.AbstractBoundaryRestriction
public abstract class AbstractBoundaryRestriction
This abstract class offers methods to ensure a reasonable maximum size for ScreenDockWindow
s.
Field Summary |
---|
Fields inherited from interface bibliothek.gui.dock.station.screen.BoundaryRestriction |
---|
FREE, HARD, MEDIUM |
Constructor Summary | |
---|---|
AbstractBoundaryRestriction()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractBoundaryRestriction()
Method Detail |
---|
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.protected abstract Rectangle checkSize(ScreenDockWindow window)
window
window
- the window whose boundaries are checked
null
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 requested
null
if target
is validprotected Dimension getMaximumSize(ScreenDockWindow window)
window
is allowed to have.
window
- the window whose maximum size is searched
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |