|
||||||||||
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 bibliothek.gui.dock.station.screen.MediumBoundaryRestriction
public class MediumBoundaryRestriction
A restriction that ensures that the title of each dialog is always visible.
Field Summary |
---|
Fields inherited from interface bibliothek.gui.dock.station.screen.BoundaryRestriction |
---|
FREE, HARD, MEDIUM |
Constructor Summary | |
---|---|
MediumBoundaryRestriction()
|
Method Summary | |
---|---|
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. |
Methods inherited from class bibliothek.gui.dock.station.screen.AbstractBoundaryRestriction |
---|
check, check, getMaximumSize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MediumBoundaryRestriction()
Method Detail |
---|
public Rectangle checkSize(ScreenDockWindow window)
AbstractBoundaryRestriction
window
checkSize
in class AbstractBoundaryRestriction
window
- the window whose boundaries are checked
null
if the current boundaries of window
are validpublic Rectangle checkSize(ScreenDockWindow window, Rectangle target)
AbstractBoundaryRestriction
window
assuming that window
will
be give the boundaries target
.
checkSize
in class AbstractBoundaryRestriction
window
- the window whose boundaries are checkedtarget
- the boundaries that are requested
null
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 device
target
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 required
null
protected Rectangle findDevice(int x, int y)
x/y
are.
x
- some x coordinatey
- some y coordinate
x/y
or null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |