net.fortuna.saverscreens
Class ScreensaverUtils
java.lang.Object
net.fortuna.saverscreens.ScreensaverUtils
- public class ScreensaverUtils
- extends java.lang.Object
- Author:
- benf
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
wakeup
public static boolean wakeup
kioskEnabled
public static boolean kioskEnabled
ScreensaverUtils
public ScreensaverUtils()
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 runfullscreen
- 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