com.jappit.imagefx.fxs
Class ExplodeFx

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

public class ExplodeFx
extends ImageFx


Field Summary
static int DEFAULT_LEVEL
           
 
Fields inherited from class com.jappit.imagefx.ImageFx
ORIENTATION_HORIZONTAL, ORIENTATION_NONE, ORIENTATION_VERTICAL, TYPE_IN, TYPE_NONE, TYPE_OUT
 
Constructor Summary
ExplodeFx(int level, int hPieces, int vPieces)
          Creates an explode FX with the given number of horizontal and vertical pieces, and with the given strenght
 
Method Summary
protected  void paintFx(javax.microedition.lcdui.Graphics g, javax.microedition.lcdui.Image image, long timeDiff)
          Renders the given Image applying the FX
 
Methods inherited from class com.jappit.imagefx.ImageFx
assertFxType, assertNotFxType, assertNotOrientation, assertOrientation, getDirection, getFxType, getOrientation, getPercentage, isEnded, isLooping, isRunning, paint, setDirection, setFxType, setLooping, setOrientation, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LEVEL

public static final int DEFAULT_LEVEL
See Also:
Constant Field Values
Constructor Detail

ExplodeFx

public ExplodeFx(int level,
                 int hPieces,
                 int vPieces)
Creates an explode FX with the given number of horizontal and vertical pieces, and with the given strenght

Parameters:
level - the explosion strenght
hPieces - the horizontal pieces number
vPieces - the vertical pieces number
Method Detail

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