com.jappit.imagefx.fxs
Class SlideFx

java.lang.Object
  extended by com.jappit.imagefx.ImageFx
      extended by com.jappit.imagefx.fxs.SlideFx

public class SlideFx
extends ImageFx


Field Summary
 
Fields inherited from class com.jappit.imagefx.ImageFx
ORIENTATION_HORIZONTAL, ORIENTATION_NONE, ORIENTATION_VERTICAL, TYPE_IN, TYPE_NONE, TYPE_OUT
 
Constructor Summary
SlideFx(int pieces, int slideType, int direction)
          Creates a slide FX with the given number of pieces, and with the specified FX type and direction
 
Method Summary
protected  void paintFx(javax.microedition.lcdui.Graphics g, javax.microedition.lcdui.Image image, long timeDiff)
          Renders the given Image applying the FX
 void start(long millisecs)
          Starts the FX animation
 
Methods inherited from class com.jappit.imagefx.ImageFx
assertFxType, assertNotFxType, assertNotOrientation, assertOrientation, getDirection, getFxType, getOrientation, getPercentage, isEnded, isLooping, isRunning, paint, setDirection, setFxType, setLooping, setOrientation, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SlideFx

public SlideFx(int pieces,
               int slideType,
               int direction)
Creates a slide FX with the given number of pieces, and with the specified FX type and direction

Parameters:
pieces - the number of slides
slideType - the FX type
direction - the FX direction
Method Detail

start

public void start(long millisecs)
Description copied from class: ImageFx
Starts the FX animation

Overrides:
start in class ImageFx
Parameters:
millisecs - the FX duration, in milliseconds

paintFx

protected void paintFx(javax.microedition.lcdui.Graphics g,
                       javax.microedition.lcdui.Image image,
                       long timeDiff)
Description copied from class: ImageFx
Renders the given Image applying the FX

Specified by:
paintFx in class ImageFx
Parameters:
g - the Graphics object to be used for rendering the FX
image - the Image object to be drawn
timeDiff - the current time difference from FX start