|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.jdic.screensaver.ScreensaverBase
org.jdesktop.jdic.screensaver.SimpleScreensaver
public abstract class SimpleScreensaver
Base class for simple screensavers who will have their paint()
method invoked on a regular basis to render each frame.
Constructor Summary | |
---|---|
SimpleScreensaver()
|
Method Summary | |
---|---|
abstract void |
paint(java.awt.Graphics g)
Override this method in your subclasses to paint a single frame. |
void |
renderFrame()
Called by the native layer to render the next frame. |
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 |
---|
public SimpleScreensaver()
Method Detail |
---|
public abstract void paint(java.awt.Graphics g)
g
- Graphics context used to draw to the screensaver window.public final void renderFrame()
renderFrame
in class ScreensaverBase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |