|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.station.screen.DefaultScreenDockFullscreenStrategy
@Todo(compatibility=COMPATIBLE,
priority=BUG,
target=VERSION_1_1_1,
description="handle taskbar, check multi-screen (does not work properly)")
public class DefaultScreenDockFullscreenStrategy
This default implementation of a ScreenDockFullscreenStrategy just works with
the boundaries of a ScreenDockWindow. It assumes that either ScreenDockDialog
or ScreenDockFrame is used. Subclasses may extend this list, the algorithms of this
strategy should work with most implementations that are based on a Window.
| Constructor Summary | |
|---|---|
DefaultScreenDockFullscreenStrategy()
|
|
| Method Summary | |
|---|---|
protected Rectangle |
findBestFullscreenBounds(Window window)
Tries to find the boundaries that match the fullscreen-criterium and that match the current location of window. |
protected Rectangle |
getAvailableBounds(GraphicsConfiguration configuration)
Gets the boundaries of a GraphicsDevice that can actually be used. |
void |
install(ScreenDockStation station)
Informs this strategy that it will be used for station. |
boolean |
isFullscreen(ScreenDockWindow window)
Tells whether window is in fullscreen mode. |
boolean |
isFullscreen(ScreenDockWindow wrapper,
Window window)
Tells whether the frame or dialog window is in fullscreen mode. |
void |
setFullscreen(ScreenDockWindow window,
boolean fullscreen)
Changes the fullscreen mode of window, does nothing if this strategy cannot handle the
type of window. |
void |
setFullscreen(ScreenDockWindow wrapper,
Window window,
boolean fullscreen)
Sets the fullscreen mode of window. |
void |
uninstall(ScreenDockStation station)
Informs this strategy that it will no longer be used for station. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultScreenDockFullscreenStrategy()
| Method Detail |
|---|
public void install(ScreenDockStation station)
ScreenDockFullscreenStrategystation.
install in interface ScreenDockFullscreenStrategystation - some station using this strategypublic void uninstall(ScreenDockStation station)
ScreenDockFullscreenStrategystation.
uninstall in interface ScreenDockFullscreenStrategystation - some station that is no longer using this strategypublic boolean isFullscreen(ScreenDockWindow window)
ScreenDockFullscreenStrategywindow is in fullscreen mode. If this strategy cannot handle
window it returns false.
isFullscreen in interface ScreenDockFullscreenStrategywindow - some window of a known station
true if window is in fullscreen mode, false otherwise
public boolean isFullscreen(ScreenDockWindow wrapper,
Window window)
window is in fullscreen mode.
wrapper - the wrapper around windowwindow - the window to check
public void setFullscreen(ScreenDockWindow window,
boolean fullscreen)
ScreenDockFullscreenStrategywindow, does nothing if this strategy cannot handle the
type of window.
setFullscreen in interface ScreenDockFullscreenStrategywindow - some window of a known stationfullscreen - the new state
public void setFullscreen(ScreenDockWindow wrapper,
Window window,
boolean fullscreen)
window.
wrapper - the wrapper around windowwindow - the window whose state is to be changedfullscreen - the new stateprotected Rectangle findBestFullscreenBounds(Window window)
window.
window - some window which is not yet in fullscreen mode
null if not boundaries could be foundprotected Rectangle getAvailableBounds(GraphicsConfiguration configuration)
GraphicsDevice that can actually be used.
configuration - some device
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||