public class InternalFullscreenStrategy extends java.lang.Object implements ScreenDockFullscreenStrategy
ScreenDockFullscreenStrategy
is based on a JDesktopPane
and assumes that
a window is fullscreen if it covers the entire JDesktopPane
. This strategy further assumes that
any window is child of that pane.Constructor and Description |
---|
InternalFullscreenStrategy(javax.swing.JDesktopPane desktop)
Creates a new strategy.
|
Modifier and Type | Method and Description |
---|---|
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. |
void |
setFullscreen(ScreenDockWindow window,
boolean fullscreen)
Changes the fullscreen mode of
window , does nothing if this strategy cannot handle the
type of window . |
void |
uninstall(ScreenDockStation station)
Informs this strategy that it will no longer be used for
station . |
public InternalFullscreenStrategy(javax.swing.JDesktopPane desktop)
desktop
- the pane which must be covered, this strategy assumes that any window
is a child of this pane.public void install(ScreenDockStation station)
ScreenDockFullscreenStrategy
station
.install
in interface ScreenDockFullscreenStrategy
station
- some station using this strategypublic void uninstall(ScreenDockStation station)
ScreenDockFullscreenStrategy
station
.uninstall
in interface ScreenDockFullscreenStrategy
station
- some station that is no longer using this strategypublic boolean isFullscreen(ScreenDockWindow window)
ScreenDockFullscreenStrategy
window
is in fullscreen mode. If this strategy cannot handle
window
it returns false
.isFullscreen
in interface ScreenDockFullscreenStrategy
window
- some window of a known stationtrue
if window
is in fullscreen mode, false
otherwisepublic void setFullscreen(ScreenDockWindow window, boolean fullscreen)
ScreenDockFullscreenStrategy
window
, does nothing if this strategy cannot handle the
type of window
.setFullscreen
in interface ScreenDockFullscreenStrategy
window
- some window of a known stationfullscreen
- the new state