|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.media.tile.TileSet
com.threerings.media.tile.UniformTileSet
public class UniformTileSet
A uniform tileset is one that is composed of tiles that are all the same width and height and are arranged into rows, with each row having the same number of tiles except possibly the final row which can contain the same as or less than the number of tiles contained by the previous rows.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.threerings.media.tile.TileSet |
|---|
TileSet.Colorizer |
| Field Summary | |
|---|---|
protected int |
_height
The height (in pixels) of the tiles in this tileset. |
protected int |
_width
The width (in pixels) of the tiles in this tileset. |
| Fields inherited from class com.threerings.media.tile.TileSet |
|---|
_atiles, _cacheStatThrottle, _imagePath, _improv, _key, _name, _zations |
| Constructor Summary | |
|---|---|
UniformTileSet()
|
|
| Method Summary | |
|---|---|
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 |
getHeight()
Returns the height of the tiles in this tileset. |
int |
getTileCount()
Returns the number of tiles in the tileset. |
int |
getWidth()
Returns the width of the tiles in this tileset. |
void |
setHeight(int height)
Specifies the height of the tiles in this tileset. |
void |
setWidth(int width)
Specifies the width of the tiles in this tileset. |
protected void |
toString(StringBuilder buf)
Derived classes can override this, calling super.toString(buf) and then
appending additional information to the buffer. |
| Methods inherited from class com.threerings.media.tile.TileSet |
|---|
checkTileIndex, clone, clone, createTile, getColorizations, getImagePath, getName, getRawTileImage, getRawTileSetImage, getTile, getTile, getTile, getTileMirage, getTileMirage, getTileMirages, initTile, reportCachePerformance, setImagePath, setImageProvider, setName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int _width
protected int _height
| Constructor Detail |
|---|
public UniformTileSet()
| Method Detail |
|---|
public int getTileCount()
TileSet
getTileCount in class TileSet
public Rectangle computeTileBounds(int tileIndex,
Rectangle bounds)
TileSet
computeTileBounds 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 setWidth(int width)
public int getWidth()
public void setHeight(int height)
public int getHeight()
protected void toString(StringBuilder buf)
TileSetsuper.toString(buf) and then
appending additional information to the buffer.
toString in class TileSet
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||