bibliothek.gui.dock.station.screen
Class InternalFullscreenStrategy

java.lang.Object
  extended by bibliothek.gui.dock.station.screen.InternalFullscreenStrategy
All Implemented Interfaces:
ScreenDockFullscreenStrategy

public class InternalFullscreenStrategy
extends Object
implements ScreenDockFullscreenStrategy

This 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.

Author:
Benjamin Sigg

Constructor Summary
InternalFullscreenStrategy(JDesktopPane desktop)
          Creates a new strategy.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalFullscreenStrategy

public InternalFullscreenStrategy(JDesktopPane desktop)
Creates a new strategy.

Parameters:
desktop - the pane which must be covered, this strategy assumes that any window is a child of this pane.
Method Detail

install

public void install(ScreenDockStation station)
Description copied from interface: ScreenDockFullscreenStrategy
Informs this strategy that it will be used for station.

Specified by:
install in interface ScreenDockFullscreenStrategy
Parameters:
station - some station using this strategy

uninstall

public void uninstall(ScreenDockStation station)
Description copied from interface: ScreenDockFullscreenStrategy
Informs this strategy that it will no longer be used for station.

Specified by:
uninstall in interface ScreenDockFullscreenStrategy
Parameters:
station - some station that is no longer using this strategy

isFullscreen

public boolean isFullscreen(ScreenDockWindow window)
Description copied from interface: ScreenDockFullscreenStrategy
Tells whether window is in fullscreen mode. If this strategy cannot handle window it returns false.

Specified by:
isFullscreen in interface ScreenDockFullscreenStrategy
Parameters:
window - some window of a known station
Returns:
true if window is in fullscreen mode, false otherwise

setFullscreen

public void setFullscreen(ScreenDockWindow window,
                          boolean fullscreen)
Description copied from interface: ScreenDockFullscreenStrategy
Changes the fullscreen mode of window, does nothing if this strategy cannot handle the type of window.

Specified by:
setFullscreen in interface ScreenDockFullscreenStrategy
Parameters:
window - some window of a known station
fullscreen - the new state