|
||||||||||
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, even when some screens can't be used because of that.
Field Summary |
---|
Fields inherited from interface bibliothek.gui.dock.station.screen.BoundaryRestriction |
---|
FREE, HARD |
Constructor Summary | |
---|---|
HardBoundaryRestriction()
|
Method Summary | |
---|---|
protected Rectangle |
boundsInDevice(ScreenDockDialog dialog,
int x,
int y,
int width,
int height,
GraphicsDevice device)
Calculates size and location of dialog such that it is
in device . |
Rectangle |
check(ScreenDockDialog dialog)
Calculates the bounds which dialog can have. |
Rectangle |
check(ScreenDockDialog dialog,
Rectangle target)
Calculates the bounds which dialog can have. |
protected double |
measureBounds(ScreenDockDialog dialog,
int x,
int y,
int width,
int height,
GraphicsDevice device)
Checks how good dialog 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 Rectangle check(ScreenDockDialog dialog)
BoundaryRestriction
dialog
can have.
check
in interface BoundaryRestriction
dialog
- the dialog whose bounds should be checked.
dialog
, can be null
to indicate that the current boundaries are valid.public Rectangle check(ScreenDockDialog dialog, Rectangle target)
BoundaryRestriction
dialog
can have.
check
in interface BoundaryRestriction
dialog
- the dialog whose future bounds should be checked.target
- the bounds dialog
should have, this method
should not write into target
.
null
to indicate that
target
is valid.protected double measureBounds(ScreenDockDialog dialog, int x, int y, int width, int height, GraphicsDevice device)
dialog
fits into the screen device
dialog
- the dialog that is checkedx
- the desired x-coordinatey
- the desired y-coordinatewidth
- the desired widthheight
- the desired heightdevice
- the targeted screen
protected Rectangle boundsInDevice(ScreenDockDialog dialog, int x, int y, int width, int height, GraphicsDevice device)
dialog
such that it is
in device
.
dialog
- the dialog 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 |