org.kalmeo.kuix.transition
Class SlideTransition

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

public class SlideTransition
extends java.lang.Object
implements Transition

This class implements a slide transition between two screens. This transition could be parametrized with a direction (left, right, top and bottom).

Author:
bbeaulant

Field Summary
protected  Image newImage
           
protected  Image oldImage
           
 
Constructor Summary
SlideTransition(Alignment direction)
          Construct a SlideTransition
 
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
 

Field Detail

oldImage

protected Image oldImage

newImage

protected Image newImage
Constructor Detail

SlideTransition

public SlideTransition(Alignment direction)
Construct a SlideTransition

Parameters:
direction -
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.