proguard.gui.splash
Class FontSprite

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

public class FontSprite
extends Object
implements Sprite

This Sprite sets the font for another given sprite.

Author:
Eric Lafortune

Constructor Summary
FontSprite(proguard.gui.splash.VariableFont font, Sprite sprite)
          Creates a new FontSprite.
 
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

FontSprite

public FontSprite(proguard.gui.splash.VariableFont font,
                  Sprite sprite)
Creates a new FontSprite.

Parameters:
font - the variable Font of the given sprite.
sprite - the sprite that will be provided of a font 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.