proguard.gui.splash
Class ColorSprite

java.lang.Object
  extended by proguard.gui.splash.ColorSprite
All Implemented Interfaces:
Sprite

public class ColorSprite
extends Object
implements Sprite

This Sprite colors another given sprite.

Author:
Eric Lafortune

Constructor Summary
ColorSprite(proguard.gui.splash.VariableColor color, Sprite sprite)
          Creates a new ColorSprite.
 
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

ColorSprite

public ColorSprite(proguard.gui.splash.VariableColor color,
                   Sprite sprite)
Creates a new ColorSprite.

Parameters:
color - the variable color of the given sprite.
sprite - the sprite that will be colored and painted.
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.


Copyright © 2012. All Rights Reserved.