public class DefaultFullScreenStrategy extends Object implements FullScreenStrategy
Client applications may wish to select a screen device other than the default - extend this class
and override getScreenDevice() to do so.
Client applications may wish to explicitly set the DisplayMode - extend this class and override
getDisplayMode(DisplayMode[]) to do so.
Client applications may also have other requirements such as hiding other on-screen controls when
in full-screen mode - extend this class and over- ride onBeforeEnterFullScreenMode() and
onAfterExitFullScreenMode() to do so.
| Constructor and Description |
|---|
DefaultFullScreenStrategy(Window window)
Create a new full-screen strategy.
|
| Modifier and Type | Method and Description |
|---|---|
void |
enterFullScreenMode()
Attempt to enter full-screen mode.
|
void |
exitFullScreenMode()
Exit full-screen mode.
|
boolean |
isFullScreenMode()
Test whether or not full-screen mode is currently active.
|
public DefaultFullScreenStrategy(Window window)
window - component that will be made full-screenpublic void enterFullScreenMode()
FullScreenStrategyenterFullScreenMode in interface FullScreenStrategypublic void exitFullScreenMode()
FullScreenStrategyexitFullScreenMode in interface FullScreenStrategypublic boolean isFullScreenMode()
FullScreenStrategyisFullScreenMode in interface FullScreenStrategyCopyright © 2009-2012 Caprica Software Limited. All Rights Reserved.