Class AdaptiveFullScreenStrategy
- java.lang.Object
-
- uk.co.caprica.vlcj.player.embedded.fullscreen.adaptive.AdaptiveFullScreenStrategy
-
- All Implemented Interfaces:
FullScreenStrategy
public class AdaptiveFullScreenStrategy extends Object implements FullScreenStrategy
Implementation of an full-screen strategy based on the current run-time operating system.This implementation uses the "best" available of the provided full-screen strategy implementations, which may be a native solution, for each supported operating system.
-
-
Constructor Summary
Constructors Constructor Description AdaptiveFullScreenStrategy(Window window)
Create a full-screen strategy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
AdaptiveFullScreenStrategy
public AdaptiveFullScreenStrategy(Window window)
Create a full-screen strategy.- Parameters:
window
- window to manage as full-screen or not
-
-
Method Detail
-
enterFullScreenMode
public final void enterFullScreenMode()
Description copied from interface:FullScreenStrategy
Attempt to enter full-screen mode.- Specified by:
enterFullScreenMode
in interfaceFullScreenStrategy
-
exitFullScreenMode
public final void exitFullScreenMode()
Description copied from interface:FullScreenStrategy
Exit full-screen mode.- Specified by:
exitFullScreenMode
in interfaceFullScreenStrategy
-
isFullScreenMode
public final boolean isFullScreenMode()
Description copied from interface:FullScreenStrategy
Test whether or not full-screen mode is currently active.- Specified by:
isFullScreenMode
in interfaceFullScreenStrategy
- Returns:
true
if full-screen mode is active; otherwisefalse
-
-