com.incrediblesoft.redjey
Class CustomImage

java.lang.Object
  extended by com.incrediblesoft.redjey.CustomImage

public class CustomImage
extends java.lang.Object


Field Summary
 int height
           
 javax.microedition.lcdui.Image image
           
 int width
           
 int x
           
 int y
           
 
Constructor Summary
CustomImage(CustomImage customImage, int x, int y, int width, int height)
           
CustomImage(java.util.Hashtable styleDesc)
           
CustomImage(javax.microedition.lcdui.Image image)
           
CustomImage(javax.microedition.lcdui.Image image, int frameWidth, int frameHeight)
           
CustomImage(javax.microedition.lcdui.Image image, int frameWidth, int frameHeight, int framerate)
           
CustomImage(javax.microedition.lcdui.Image image, int x, int y, int width, int height)
           
 
Method Summary
 CustomImage clone()
           
 int getHeight()
           
 int getWidth()
           
 void paint(javax.microedition.lcdui.Graphics g, int x, int y, int alignment)
           
 void setFramerate(int framerate)
           
 void setNumFrames(int numFrames)
          Sets the maximum number of frames.
 void tick(int dt)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

image

public javax.microedition.lcdui.Image image

x

public int x

y

public int y

width

public int width

height

public int height
Constructor Detail

CustomImage

public CustomImage(javax.microedition.lcdui.Image image)

CustomImage

public CustomImage(javax.microedition.lcdui.Image image,
                   int frameWidth,
                   int frameHeight)

CustomImage

public CustomImage(javax.microedition.lcdui.Image image,
                   int frameWidth,
                   int frameHeight,
                   int framerate)

CustomImage

public CustomImage(javax.microedition.lcdui.Image image,
                   int x,
                   int y,
                   int width,
                   int height)

CustomImage

public CustomImage(CustomImage customImage,
                   int x,
                   int y,
                   int width,
                   int height)

CustomImage

public CustomImage(java.util.Hashtable styleDesc)
Method Detail

getWidth

public int getWidth()

getHeight

public int getHeight()

setFramerate

public void setFramerate(int framerate)

setNumFrames

public void setNumFrames(int numFrames)
Sets the maximum number of frames. Used when some last frames in sequence are empty.

Parameters:
numFrames -

tick

public void tick(int dt)

paint

public void paint(javax.microedition.lcdui.Graphics g,
                  int x,
                  int y,
                  int alignment)

clone

public CustomImage clone()
Overrides:
clone in class java.lang.Object