KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > microedition > lcdui > game > Sprite

javax.microedition.lcdui.game
Class Sprite

java.lang.Object
  |
  +--javax.microedition.lcdui.game.Layer
        |
        +--javax.microedition.lcdui.game.Sprite
See Also:
paint(Graphics), setTransform(transform), setRefPixelPosition(x,y), getRefPixelY(), getRefPixelX(), defineReferencePixel(x,y), getY(), getX(), setPosition(x,y), nextFrame(), prevFrame(), setFrame(int), getRawFrameCount()

public final boolean collidesWith(Sprite s,
                                  boolean pixelLevel)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final boolean collidesWith(TiledLayer t,
                                  boolean pixelLevel)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final boolean collidesWith(Image image,
                                  int x,
                                  int y,
                                  boolean pixelLevel)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void defineCollisionRectangle(int x,
                                     int y,
                                     int width,
                                     int height)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void defineReferencePixel(int x,
                                 int y)
See Also:
getRefPixelY(), getRefPixelX(), setRefPixelPosition(int, int), getY(), getX()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final int getFrame()
See Also:
setFrame(int), setFrameSequence(int[])
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getFrameSequenceLength()
See Also:
getRawFrameCount()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getRawFrameCount()
See Also:
getFrameSequenceLength()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getRefPixelX()
See Also:
getRefPixelY(), setRefPixelPosition(int, int), defineReferencePixel(int, int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getRefPixelY()
See Also:
getRefPixelX(), setRefPixelPosition(int, int), defineReferencePixel(int, int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void nextFrame()
See Also:
prevFrame(), setFrameSequence(int[])
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final void paint(Graphics g)
See Also:
Layer, Layer.getY(), Layer.getX()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void prevFrame()
See Also:
nextFrame(), setFrameSequence(int[])
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setFrame(int sequenceIndex)
See Also:
getFrame(), setFrameSequence(int[]), paint(Graphics)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setFrameSequence(int[] sequence)
See Also:
getFrame(), setFrame(int), prevFrame(), nextFrame(), getRawFrameCount()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setImage(Image img,
                     int frameWidth,
                     int frameHeight)
See Also:
setFrameSequence(int[]), Layer.getHeight(), Layer.getWidth(), Sprite(Image, int, int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setRefPixelPosition(int x,
                                int y)
See Also:
getRefPixelY(), getRefPixelX(), defineReferencePixel(int, int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setTransform(int transform)
See Also:
TRANS_MIRROR_ROT270, TRANS_MIRROR_ROT180, TRANS_MIRROR_ROT90, TRANS_MIRROR, TRANS_ROT270, TRANS_ROT180, TRANS_ROT90, TRANS_NONE, getY(), getX(), getRefPixelY(), getRefPixelX(), Layer.getHeight(), Layer.getWidth()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Sprite(Sprite s)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Sprite(Image image)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Sprite(Image image,
              int frameWidth,
              int frameHeight)
See Also:
setFrameSequence(int[]), Layer.getHeight(), Layer.getWidth()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int TRANS_MIRROR
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int TRANS_MIRROR_ROT180
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int TRANS_MIRROR_ROT270
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int TRANS_MIRROR_ROT90
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int TRANS_NONE
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int TRANS_ROT180
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int TRANS_ROT270
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int TRANS_ROT90
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags