|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.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 | |
|---|---|
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. |
protected java.awt.Rectangle |
findDevice(int x,
int y)
Finds and returns the boundaries of the screen in which x/y are. |
protected java.awt.Rectangle |
validate(java.awt.Rectangle target,
java.awt.Point center,
java.awt.Point search)
Ensures that center will be in a visible part of the screen. |
| 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 java.awt.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 java.awt.Rectangle check(ScreenDockWindow window,
java.awt.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.
protected java.awt.Rectangle validate(java.awt.Rectangle target,
java.awt.Point center,
java.awt.Point search)
center will be in a visible part of the screen.
target - the next boundaries for a windowcenter - the point that should remain visiblesearch - the point used to find the best matching screen device
target as possible
protected java.awt.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 | |||||||||