-bottom

com.velox
Class SISAniImage

java.lang.Object
  |
  +--javax.microedition.lcdui.Image
        |
        +--com.velox.SISAniImage

public class SISAniImage
extends javax.microedition.lcdui.Image


Fields inherited from class javax.microedition.lcdui.Image
impl
 
Method Summary
 int bestIndex()
          Gets best index.
static javax.microedition.lcdui.Image createImage(byte[] imagedata, int imageoffset, int imagelength)
          Create image using byte array of image data, image offset, length.
static javax.microedition.lcdui.Image createImage(java.lang.String name)
          Creates an image using given file name.
static void deallocate()
           
 javax.microedition.lcdui.Image get(int index)
          Gets the image using index
 int[] getDelay()
          Gets delay.
 javax.microedition.lcdui.Image getType(int index)
          Gets the type using index.
 boolean isLooped()
          Returns true if loop is set.
 int numTypes()
          Gets the numTypes.
 void set(int index)
          Sets image given index.
static void setBufferSize(int size)
          Sets buffer size given size.
 int size()
          Gets size.
 
Methods inherited from class javax.microedition.lcdui.Image
createImage, createImage, getGraphics, getHeight, getImageData, getWidth, isMutable
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createImage

public static javax.microedition.lcdui.Image createImage(java.lang.String name)
                                                  throws java.io.IOException
Creates an image using given file name.
Parameters:
name - - file name.
Returns:
Image - created image.
Throws:
java.io.IOException - -

createImage

public static javax.microedition.lcdui.Image createImage(byte[] imagedata,
                                                         int imageoffset,
                                                         int imagelength)
Create image using byte array of image data, image offset, length.
Parameters:
imagedata - - byte array
imageoffset - - offset
imagelength - -
Returns:
Image - created image.
Throws:
ArrayIndexOutOfBoundsException - - if imageoffset or imagelength is smaller than 0, or length of imagedata is smaller than sum of imgaeoffset and imagelength.

get

public javax.microedition.lcdui.Image get(int index)
Gets the image using index
Parameters:
index - - index of finding image.
Returns:
Image
Throws:
java.lang.IllegalArgumentException - - if index is smaller than 0 or index is bigger or same than size.

getType

public javax.microedition.lcdui.Image getType(int index)
Gets the type using index.
Parameters:
index - - index of finding image.
Returns:
Image
Throws:
java.lang.IllegalArgumentException - - if index is smaller than 0 or index is bigger or same than maxType.

isLooped

public boolean isLooped()
Returns true if loop is set.
Returns:
isLoop

size

public int size()
Gets size.
Returns:
size of image.

getDelay

public int[] getDelay()
Gets delay.
Returns:
delay of int[].

bestIndex

public int bestIndex()
Gets best index.
Returns:
bestIndex.

numTypes

public int numTypes()
Gets the numTypes.
Returns:
maxType of int.

set

public void set(int index)
Sets image given index.
Parameters:
index -  
Throws:
java.lang.IllegalArgumentException - - if index is smaller than 0 or index is bigger or same than size.

setBufferSize

public static void setBufferSize(int size)
Sets buffer size given size.
Parameters:
size -  

deallocate

public static void deallocate()

-bottom