|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.co.caprica.vlcj.player.embedded.DefaultFullScreenStrategy
public class DefaultFullScreenStrategy
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.
Constructor Summary | |
---|---|
DefaultFullScreenStrategy(java.awt.Window window)
Create a new full-screen strategy. |
Method Summary | |
---|---|
void |
enterFullScreenMode()
Attempt to enter full-screen mode. |
void |
exitFullScreenMode()
Exit full-screen mode. |
protected java.awt.DisplayMode |
getDisplayMode(java.awt.DisplayMode[] displayModes)
Get the desired display mode. |
protected java.awt.GraphicsDevice |
getScreenDevice()
Get the desired screen device. |
boolean |
isFullScreenMode()
Test whether or not full-screen mode is currently active. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultFullScreenStrategy(java.awt.Window window)
window
- component that will be made full-screenMethod Detail |
---|
public void enterFullScreenMode()
FullScreenStrategy
enterFullScreenMode
in interface FullScreenStrategy
public void exitFullScreenMode()
FullScreenStrategy
exitFullScreenMode
in interface FullScreenStrategy
public boolean isFullScreenMode()
FullScreenStrategy
isFullScreenMode
in interface FullScreenStrategy
protected java.awt.GraphicsDevice getScreenDevice()
The default implementation simply returns the default screen device.
null
protected java.awt.DisplayMode getDisplayMode(java.awt.DisplayMode[] displayModes)
The default implementation returns null
to accept the default
display mode.
displayModes
- available display modes
null
|
(C)2010 Caprica Software Limited | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |