org.kalmeo.kuix.transition
Class FadeTransition

java.lang.Object
  extended by org.kalmeo.kuix.transition.FadeTransition
All Implemented Interfaces:
Transition

public class FadeTransition
extends java.lang.Object
implements Transition

This class implements a fade transition between two screens. This transition could be parametrized with a duration.

Author:
bbeaulant

Constructor Summary
FadeTransition(int duration)
          Construct a FadeTransition
 
Method Summary
 void init(Image oldImage, Image newImage)
          This method is called before the transition starts.
 boolean process(Graphics g)
          This method is called each frame during the transition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FadeTransition

public FadeTransition(int duration)
Construct a FadeTransition

Parameters:
duration - the transition duraction in milliseconds
Method Detail

init

public void init(Image oldImage,
                 Image newImage)
Description copied from interface: Transition
This method is called before the transition starts.

Specified by:
init in interface Transition

process

public boolean process(Graphics g)
Description copied from interface: Transition
This method is called each frame during the transition.

Specified by:
process in interface Transition
Returns:
true if the transition is finished


Copyright © 2007-2008 Kalmeo. All Rights Reserved.