net.fortuna.saverscreens
Interface Screensaver

All Known Implementing Classes:
AbstractScreensaver, Screensaver2D

public interface Screensaver

Author:
Ben Fortuna Provides common method declarations which much be implemented by all screensaver implementations.

Method Summary
 java.awt.Component getDisplay()
           
 java.lang.String getName()
           
 java.awt.GraphicsConfiguration getPreferredConfiguration()
          Retrives the preferred graphics configuration for this screensaver.
 java.awt.GraphicsDevice getPreferredDevice()
          Retrieves the preferred graphics device for this screensaver.
 void initialise()
          Initialise the screensaver for execution.
 void render()
          Render a frame in the execution of the screensaver.
 void setDisplay(java.awt.Component c)
           
 

Method Detail

getPreferredDevice

public java.awt.GraphicsDevice getPreferredDevice()
Retrieves the preferred graphics device for this screensaver. This will usually equate to: GraphicsEnvironment.getLocalGraphicsEnvironment() .getDefaultScreenDevice()

Returns:
a graphics device

getPreferredConfiguration

public java.awt.GraphicsConfiguration getPreferredConfiguration()
Retrives the preferred graphics configuration for this screensaver. For most screensavers this will equate to: getPreferredDevice().getDefaultConfiguration() For Java3D screensavers this will equate to: SimpleUniverse.getPreferredConfiguration()

Returns:
a graphics configuration

getName

public java.lang.String getName()
Returns:
the display name of the screensaver

initialise

public void initialise()
Initialise the screensaver for execution.


render

public void render()
Render a frame in the execution of the screensaver.


setDisplay

public void setDisplay(java.awt.Component c)

getDisplay

public java.awt.Component getDisplay()