org.jdesktop.jdic.screensaver.bouncingline
Class WebStartScreenSaver
java.lang.Object
org.jdesktop.jdic.screensaver.ScreensaverBase
org.jdesktop.jdic.screensaver.SimpleScreensaver
org.jdesktop.jdic.screensaver.bouncingline.WebStartScreenSaver
public class WebStartScreenSaver
- extends SimpleScreensaver
Field Summary |
static java.io.File |
killFile
|
Method Summary |
void |
init()
Initialize this screen saver - pick two random points and directions. |
static void |
main(java.lang.String[] args)
|
void |
paint(java.awt.Graphics g)
Override this method in your subclasses to paint a single frame. |
static void |
startJaws(java.lang.String jawsUrl)
|
static void |
testJaws()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
killFile
public static final java.io.File killFile
WebStartScreenSaver
public WebStartScreenSaver()
init
public void init()
- Initialize this screen saver - pick two random points and directions.
testJaws
public static void testJaws()
startJaws
public static void startJaws(java.lang.String jawsUrl)
paint
public void paint(java.awt.Graphics g)
- Description copied from class:
SimpleScreensaver
- Override this method in your subclasses to paint a single frame.
Any exceptions thrown during paint will be sent to the
org.jdesktop.jdic.screensaver J2SE logger.
Tip: Treat this as though it were part of a game loop. In general,
it's a good idea not to allocate ('new') any objects after init
unless they will not be deleted. This will yield smoother animation
and no pauses from the garbage collector.
- Specified by:
paint
in class SimpleScreensaver
- Parameters:
g
- Graphics context used to draw to the screensaver window.
main
public static void main(java.lang.String[] args)