proguard.gui.splash
Class BufferedSprite
java.lang.Object
proguard.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.
|
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 |
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.
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.