|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.station.screen.HardBoundaryRestriction
public class HardBoundaryRestriction
A restriction that ensures that each dialog is always visible on exactly one screen.
| Field Summary |
|---|
| Fields inherited from interface bibliothek.gui.dock.station.screen.BoundaryRestriction |
|---|
FREE, HARD, MEDIUM |
| Constructor Summary | |
|---|---|
HardBoundaryRestriction()
|
|
| Method Summary | |
|---|---|
protected java.awt.Rectangle |
boundsInDevice(ScreenDockWindow window,
int x,
int y,
int width,
int height,
java.awt.GraphicsDevice device)
Calculates size and location of dialog such that it is
in device. |
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 double |
measureBounds(ScreenDockWindow window,
int x,
int y,
int width,
int height,
java.awt.GraphicsDevice device)
Checks how good window fits into the screen device |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HardBoundaryRestriction()
| 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 double measureBounds(ScreenDockWindow window,
int x,
int y,
int width,
int height,
java.awt.GraphicsDevice device)
window fits into the screen device
window - the window that is checkedx - the desired x-coordinatey - the desired y-coordinatewidth - the desired widthheight - the desired heightdevice - the targeted screen
protected java.awt.Rectangle boundsInDevice(ScreenDockWindow window,
int x,
int y,
int width,
int height,
java.awt.GraphicsDevice device)
dialog such that it is
in device.
window - the window to checkx - the desired x-coordinatey - the desired y-coordinatewidth - the desired widthheight - the desired heightdevice - the screen in which to show this dialog
null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||