|
SaverBeans API V0.2-beta Release release | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.jdic.screensaver.ScreensaverBase
Base class for screensavers written in Java.
All developers should extend either SimpleScreensaver
or JOGLScreensaver
. This base class makes it possible to
offer different types of screensavers in the future, such as those that
can control their own rendering frequency.
SimpleScreensaver
,
JOGLScreensaver
Field Summary | |
protected ScreensaverContext |
context
Context information for this screensaver (eg window size) |
Constructor Summary | |
ScreensaverBase()
|
Method Summary | |
void |
baseDestroy()
Called from native code to destroy the screensaver. |
void |
baseInit(ScreensaverContext context)
Called from native code to do initialization. |
protected void |
destroy()
Subclasses can optionally override this method to perform any cleanup before the screensaver is destroyed. |
ScreensaverContext |
getContext()
Gets the ScreenSaver context object |
protected void |
init()
Subclasses can optionally override this method to perform any initialization. |
void |
renderFrame()
Called from the native layer to render the next frame |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected ScreensaverContext context
Constructor Detail |
public ScreensaverBase()
Method Detail |
public final void baseInit(ScreensaverContext context)
context
- Context information for this screensaver (eg window size)public final void baseDestroy()
public ScreensaverContext getContext()
public void renderFrame()
protected void init()
Init will be called once at the beginning, before the first paint, and zero or more times during the running to reset the screensaver (for example if the resolution changed).
protected void destroy()
Destroy will be called at most once. After a call to this method, the screensaver should not expect the ScreensaverContext to be valid any longer.
|
SaverBeans API V0.2-beta Release release | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, working code examples, license terms and bug report information.
Copyright (c) 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.