javax.microedition.lcdui.game
Class TiledLayer

java.lang.Object
  extended by javax.microedition.lcdui.game.Layer
      extended by javax.microedition.lcdui.game.TiledLayer

public class TiledLayer
extends Layer


Constructor Summary
TiledLayer(int columns, int rows, Image image, int tileWidth, int tileHeight)
           
 
Method Summary
 int createAnimatedTile(int staticTileIndex)
           
 void fillCells(int col, int row, int numCols, int numRows, int tileIndex)
           
 int getAnimatedTile(int animatedTileIndex)
           
 int getCell(int col, int row)
           
 int getCellHeight()
           
 int getCellWidth()
           
 int getColumns()
           
 int getRows()
           
 void paint(Graphics g)
           
 void setAnimatedTile(int animatedTileIndex, int staticTileIndex)
           
 void setCell(int col, int row, int tileIndex)
           
 void setStaticTileSet(Image image, int tileWidth, int tileHeight)
           
 
Methods inherited from class javax.microedition.lcdui.game.Layer
getHeight, getWidth, getX, getY, isVisible, move, setPosition, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TiledLayer

public TiledLayer(int columns,
                  int rows,
                  Image image,
                  int tileWidth,
                  int tileHeight)
Method Detail

createAnimatedTile

public int createAnimatedTile(int staticTileIndex)

setAnimatedTile

public void setAnimatedTile(int animatedTileIndex,
                            int staticTileIndex)

getAnimatedTile

public int getAnimatedTile(int animatedTileIndex)

setCell

public void setCell(int col,
                    int row,
                    int tileIndex)

getCell

public int getCell(int col,
                   int row)

fillCells

public void fillCells(int col,
                      int row,
                      int numCols,
                      int numRows,
                      int tileIndex)

getCellWidth

public int getCellWidth()

getCellHeight

public int getCellHeight()

getColumns

public int getColumns()

getRows

public int getRows()

setStaticTileSet

public void setStaticTileSet(Image image,
                             int tileWidth,
                             int tileHeight)

paint

public void paint(Graphics g)
Specified by:
paint in class Layer


Copyright © 2006-2007 Jayway AB. All Rights Reserved.