Module uk.co.caprica.vlcj
Class ExclusiveModeFullScreenStrategy
java.lang.Object
uk.co.caprica.vlcj.player.embedded.fullscreen.exclusivemode.ExclusiveModeFullScreenStrategy
- All Implemented Interfaces:
FullScreenStrategy
Default implementation of a full-screen strategy that attempts to use the JDK full-screen exclusive mode support.
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 override onBeforeEnterFullScreenMode()
and onAfterExitFullScreenMode()
to do so.
It may be useful to specify "-Dsun.java2d.d3d=false" on the Windows platform for performance reasons.
This strategy implementation is not recommended for use, consider using any of the native strategies instead.
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new full-screen strategy. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Attempt to enter full-screen mode.void
Exit full-screen mode.boolean
Test whether or not full-screen mode is currently active.
-
Constructor Details
-
ExclusiveModeFullScreenStrategy
Create a new full-screen strategy.- Parameters:
window
- component that will be made full-screen
-
-
Method Details
-
enterFullScreenMode
public void enterFullScreenMode()Description copied from interface:FullScreenStrategy
Attempt to enter full-screen mode.- Specified by:
enterFullScreenMode
in interfaceFullScreenStrategy
-
exitFullScreenMode
public void exitFullScreenMode()Description copied from interface:FullScreenStrategy
Exit full-screen mode.- Specified by:
exitFullScreenMode
in interfaceFullScreenStrategy
-
isFullScreenMode
public 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
-