ProGuard

proguard.gui.splash
Class BufferedSprite

java.lang.Object
  extended byproguard.gui.splash.BufferedSprite
All Implemented Interfaces:
Sprite

public class BufferedSprite
extends Object
implements Sprite

This Sprite encapsulates another Sprite, which is buffered on an Image.


Constructor Summary
BufferedSprite(Image bufferImage, Graphics bufferGraphics, Color backgroundColor, Sprite sprite)
          Creates a new BufferedSprite.
 
Method Summary
 void paint(Graphics graphics, long time)
          Paints the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferedSprite

public BufferedSprite(Image bufferImage,
                      Graphics bufferGraphics,
                      Color backgroundColor,
                      Sprite sprite)
Creates a new BufferedSprite.

Parameters:
bufferImage - the Image that is used for the buffering.
bufferGraphics - the Graphics of the Image.
backgroundColor - the background color that is used for the buffer.
sprite - the Sprite that is painted in the buffer.
Method Detail

paint

public void paint(Graphics graphics,
                  long time)
Description copied from interface: Sprite
Paints the object.

Specified by:
paint in interface Sprite
Parameters:
graphics - the Graphics to paint on.
time - the time since the start of the animation, expressed in milliseconds.

ProGuard