net.fortuna.saverscreens
Class ScreensaverUtils

java.lang.Object
  extended bynet.fortuna.saverscreens.ScreensaverUtils

public class ScreensaverUtils
extends java.lang.Object

Author:
benf

Field Summary
static boolean kioskEnabled
           
static boolean wakeup
           
 
Constructor Summary
ScreensaverUtils()
           
 
Method Summary
static java.awt.Window createScreensaverWindow(Screensaver s)
           
static java.awt.Window createScreensaverWindow(Screensaver s, int wakeupMode)
          Creates a screensaver-mode window.
static void destroyScreensaverWindow(Screensaver s)
          Destroys any existing screensaver-mode window.
static java.awt.Cursor getBlankCursor()
          Creates a blank cursor typically used to hide the on-screen cursor.
static boolean isOption(java.lang.String option, java.lang.String[] args)
           
static void run(Screensaver screensaver, boolean fullscreen)
          Initialise and execute the specified screensaver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wakeup

public static boolean wakeup

kioskEnabled

public static boolean kioskEnabled
Constructor Detail

ScreensaverUtils

public ScreensaverUtils()
Method Detail

createScreensaverWindow

public static java.awt.Window createScreensaverWindow(Screensaver s)

createScreensaverWindow

public static java.awt.Window createScreensaverWindow(Screensaver s,
                                                      int wakeupMode)
Creates a screensaver-mode window. A screensaver window has the following features: - a full-screen window - hide the mouse pointer - System.exit() on mouse/keyboard activity


destroyScreensaverWindow

public static void destroyScreensaverWindow(Screensaver s)
Destroys any existing screensaver-mode window.


isOption

public static boolean isOption(java.lang.String option,
                               java.lang.String[] args)

run

public static void run(Screensaver screensaver,
                       boolean fullscreen)
Initialise and execute the specified screensaver.

Parameters:
screensaver - the screensaver to run
fullscreen - specifies whether to run in full-screen mode

getBlankCursor

public static java.awt.Cursor getBlankCursor()
Creates a blank cursor typically used to hide the on-screen cursor.

Returns:
a cursor