org.jdesktop.jdic.screensaver.bouncingline
Class Test1

java.lang.Object
  extended by org.jdesktop.jdic.screensaver.ScreensaverBase
      extended by org.jdesktop.jdic.screensaver.SimpleScreensaver
          extended by org.jdesktop.jdic.screensaver.bouncingline.Test1

public class Test1
extends SimpleScreensaver


Constructor Summary
Test1()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void paint(java.awt.Graphics g)
          Override this method in your subclasses to paint a single frame.
 
Methods inherited from class org.jdesktop.jdic.screensaver.SimpleScreensaver
renderFrame
 
Methods inherited from class org.jdesktop.jdic.screensaver.ScreensaverBase
baseDestroy, baseInit, getContext
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Test1

public Test1()
Method Detail

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)