public class SwissArmyTileSet extends TileSet
TileSet.Colorizer| Constructor and Description |
|---|
SwissArmyTileSet() |
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
computeTileBounds(int tileIndex,
Rectangle bounds)
Computes and fills in the bounds for the specified tile based on the mechanism used by the
derived class to do such things.
|
int[] |
getHeights()
Returns the height settings.
|
int |
getTileCount()
Returns the number of tiles in the tileset.
|
int[] |
getTileCounts()
Returns the tile count settings.
|
int[] |
getWidths()
Returns the width settings.
|
void |
setGapSize(Dimension gapSize)
Sets the size of the gap between tiles (in pixels).
|
void |
setHeights(int[] heights)
Sets the tile heights for each row.
|
void |
setOffsetPos(Point offsetPos)
Sets the offset in pixels of the upper left corner of the first tile in the first row.
|
void |
setTileCounts(int[] tileCounts)
Sets the tile counts which are the number of tiles in each row of the tileset image.
|
void |
setWidths(int[] widths)
Sets the tile widths for each row.
|
clone, clone, getImagePath, getName, getRawTileImage, getRawTileSetImage, getTile, getTile, getTile, getTileMirage, getTileMirage, getTileMirages, setImagePath, setImageProvider, setName, toStringpublic int getTileCount()
TileSetgetTileCount in class TileSetpublic Rectangle computeTileBounds(int tileIndex, Rectangle bounds)
TileSetcomputeTileBounds in class TileSettileIndex - the index of the tile whose bounds are to be computed.bounds - the rectangle object into which to fill the bounds.public void setTileCounts(int[] tileCounts)
public int[] getTileCounts()
public void setWidths(int[] widths)
public int[] getWidths()
public void setHeights(int[] heights)
public int[] getHeights()
public void setOffsetPos(Point offsetPos)
public void setGapSize(Dimension gapSize)
Copyright © 2015. All rights reserved.