hows this for a screensaver class?

//////////////////////
package digigod.jade.saver;

import java.awt.*;

public abstract class ScreenSaver implements Runnable {
 private Graphics2D g;

 public boolean isCongigurable() {
  return false;
 }
 
 public void showConfigurationDialog() {
  return;
 }
 
 public String getDescription() {
  return "A ScreenSaver";
 }
 
 public Toolkit getDefaultToolkit() { //convience method
  return Toolkit.getDefaultToolkit();
 }
 
 public void init(Graphics2D g2d) {
  g = g2d;
 }

 public Graphics2D getGraphics() {
  return g;
 }
 
 public abstract void run();
 
 public void dispose() {
  g.dispose();
 }
}
//////////////////////

the animation happs in run. everything else is handled by JADE.

Cheers,
DigiGod
_________________________
[EMAIL PROTECTED]
AIM:DigiGod 86
_________________________
Quote of the Moment:
        Thus spake the master Ninjei:
         "To the intelligent man, one word, to the fleet horse
          one whip, to the well-written program, a single
          command"
_________________________
Prank of the Moment:
        Using the conferencing feature of your office phone, dial
        one Induhvidual, then while it's ringing dial another and
        conference them together. Put your own phone on mute
        and listen to see how long they'll make small talk before
        figuring out that neither one placed the call.
O-

_______________________________________________
UI maillist  -  [EMAIL PROTECTED]
http://jos.org/mailman/listinfo/ui

Reply via email to