fullscreen
Class FullScreen

java.lang.Object
  extended by fullscreen.FullScreenBase
      extended by fullscreen.FullScreen

public class FullScreen
extends FullScreenBase

Creates a new fullscreen object.
This will use fullscreen exclusive mode to bring your sketch to the screen.
The advantages are:

The drawbacks are:


Nested Class Summary
 
Nested classes/interfaces inherited from class fullscreen.FullScreenBase
FullScreenBase.DelayedAction
 
Constructor Summary
FullScreen(PApplet dad)
          Create a new fullscreen object
FullScreen(PApplet dad, int screenNr)
          Create a fullscreen object based on a specific screen
 
Method Summary
 boolean available()
          FullScreen is only available is applications, not in applets!
 int getRefreshRate()
          Returns the current refresh rate
 int[] getRefreshRates(int xRes, int yRes)
          Get a list of refresh rates available for a resolution
 Dimension[] getResolutions()
          List resolution for this screen
static Dimension[] getResolutions(GraphicsDevice device)
          List resolutions for a graphics device
static Dimension[] getResolutions(int screenNr)
          Get a list of available screen resolutions
 boolean isFullScreen()
          Are we in FullScreen mode?
 void setFullScreen(boolean fullScreen)
          Enters/Leaves fullScreen mode.
 void setRefreshRate(int rate)
          Sets the refresh rate
 void setResolution(int xRes, int yRes)
          Change display resolution.
 
Methods inherited from class fullscreen.FullScreenBase
enter, getSketch, isGL, keyEvent, leave, requestFocus, setShortcutsEnabled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FullScreen

public FullScreen(PApplet dad,
                  int screenNr)
Create a fullscreen object based on a specific screen

Parameters:
dad - Your sketch
screenNr - The screen number in a multi-monitor system. Counting starts at zero.

FullScreen

public FullScreen(PApplet dad)
Create a new fullscreen object

Parameters:
dad - Your sketch
Method Detail

isFullScreen

public boolean isFullScreen()
Are we in FullScreen mode?

Specified by:
isFullScreen in class FullScreenBase
Returns:
true if so, yes if not

available

public boolean available()
FullScreen is only available is applications, not in applets!

Returns:
true if fullScreen mode is available

setFullScreen

public void setFullScreen(boolean fullScreen)
Enters/Leaves fullScreen mode.

Specified by:
setFullScreen in class FullScreenBase
Parameters:
fullScreen - true or false

setResolution

public void setResolution(int xRes,
                          int yRes)
Change display resolution. Only sets the resolution, use setFullScreen( true ) to go to fullscreen mode! If you're not in fullscreen mode it memorizes the resolution and sets it the next time you go in fullscreen mode

Specified by:
setResolution in class FullScreenBase
Parameters:
xRes - x resolution
yRes - y resolution

getRefreshRate

public int getRefreshRate()
Returns the current refresh rate


setRefreshRate

public void setRefreshRate(int rate)
Sets the refresh rate


getResolutions

public Dimension[] getResolutions()
List resolution for this screen


getResolutions

public static Dimension[] getResolutions(GraphicsDevice device)
List resolutions for a graphics device


getResolutions

public static Dimension[] getResolutions(int screenNr)
Get a list of available screen resolutions


getRefreshRates

public int[] getRefreshRates(int xRes,
                             int yRes)
Get a list of refresh rates available for a resolution



processing fullscreen api library by hansi, 2009.