ProGuard

proguard.gui.splash
Class TimeSwitchSprite

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

public class TimeSwitchSprite
extends Object
implements Sprite

This Sprite displays another Sprite in a given time interval. The time of the encapsulated Sprite is shifted by the start time.


Constructor Summary
TimeSwitchSprite(long onTime, long offtime, Sprite sprite)
          Creates a new TimeSwitchSprite for displaying a given Sprite in a given time interval.
TimeSwitchSprite(long onTime, Sprite sprite)
          Creates a new TimeSwitchSprite for displaying a given Sprite starting at a given time.
 
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

TimeSwitchSprite

public TimeSwitchSprite(long onTime,
                        Sprite sprite)
Creates a new TimeSwitchSprite for displaying a given Sprite starting at a given time.

Parameters:
onTime - the start time.
sprite - the toggled Sprite.

TimeSwitchSprite

public TimeSwitchSprite(long onTime,
                        long offtime,
                        Sprite sprite)
Creates a new TimeSwitchSprite for displaying a given Sprite in a given time interval.

Parameters:
onTime - the start time.
sprite - the toggled Sprite.
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