| java.lang.Object org.netbeans.modules.vmd.game.model.Layer org.netbeans.modules.vmd.game.model.TiledLayer
Constructor Summary | |
| TiledLayer(GlobalRepository gameDesign, String name, ImageResource imageResource, int rows, int columns, int tileWidth, int tileHeight) | | TiledLayer(GlobalRepository gameDesign, String name, ImageResource imageResource, int[][] grid, int tileWidth, int tileHeight) | | TiledLayer(GlobalRepository gameDesign, String name, TiledLayer tiledLayer) |
Method Summary | |
public void | addTiledLayerListener(TiledLayerListener l) | public void | animatedTileAdded(ImageResource source, AnimatedTile tile) | public void | animatedTileRemoved(ImageResource source, AnimatedTile tile) | public static int[][] | cloneTiles(int[][] grid) | public void | deleteColumns(int colIndex, int count) | public void | deleteRows(int rowIndex, int count) | public List<Action> | getActions() | public int | getColumnCount() | public String | getDisplayableTypeName() | public JComponent | getEditor() | public int | getHeight() | public ImageResourceInfo | getImageResourceInfo() | public JComponent | getNavigator() | public JComponent | getPreview() | public int | getRowCount() | public Tile | getTileAt(Position position) | public Tile | getTileAt(int rowIndex, int columnIndex) | public int | getTileIndexAt(Position position) | public int | getTileIndexAt(int rowIndex, int columnIndex) | public int[][] | getTiles() | public int | getWidth() | public void | growLayerToSize(int rows, int cols) | public void | insertColumns(int colIndex, int count) | public void | insertRows(int insRowIndex, int count) | public void | paint(Graphics2D g, int x, int y) | public void | paint(Graphics2D g) | public void | removeTiledLayerListener(TiledLayerListener l) | public void | sequenceAdded(ImageResource source, Sequence sequence) | public void | sequenceRemoved(ImageResource source, Sequence sequence) | public void | setTileAt(int tileIndex, Position position) | public void | setTileAt(int tileIndex, int rowIndex, int columnIndex) | public void | setTileAtPositions(int tileIndex, Set positions) Assigns a tile index to multiple positions. | public void | setTiles(int[][] newGrid) | public void | trimToSize() Removes all outer rows and columns that contain only empty tiles. |
DEBUG | final public static boolean DEBUG(Code) | | |
cloneTiles | public static int[][] cloneTiles(int[][] grid)(Code) | | |
deleteColumns | public void deleteColumns(int colIndex, int count)(Code) | | |
deleteRows | public void deleteRows(int rowIndex, int count)(Code) | | |
getColumnCount | public int getColumnCount()(Code) | | |
getDisplayableTypeName | public String getDisplayableTypeName()(Code) | | |
getHeight | public int getHeight()(Code) | | |
getImageResourceInfo | public ImageResourceInfo getImageResourceInfo()(Code) | | |
getRowCount | public int getRowCount()(Code) | | |
getTileAt | public Tile getTileAt(int rowIndex, int columnIndex)(Code) | | |
getTileIndexAt | public int getTileIndexAt(int rowIndex, int columnIndex)(Code) | | |
getTiles | public int[][] getTiles()(Code) | | |
getWidth | public int getWidth()(Code) | | |
growLayerToSize | public void growLayerToSize(int rows, int cols)(Code) | | |
insertColumns | public void insertColumns(int colIndex, int count)(Code) | | |
insertRows | public void insertRows(int insRowIndex, int count)(Code) | | |
setTileAt | public void setTileAt(int tileIndex, Position position)(Code) | | |
setTileAt | public void setTileAt(int tileIndex, int rowIndex, int columnIndex)(Code) | | |
setTileAtPositions | public void setTileAtPositions(int tileIndex, Set positions)(Code) | | Assigns a tile index to multiple positions.
|
setTiles | public void setTiles(int[][] newGrid)(Code) | | |
trimToSize | public void trimToSize()(Code) | | Removes all outer rows and columns that contain only empty tiles. Thus shrinking
the layer to minimal grid size without affecting the visible content.
|
|
|