|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.media.tile.TileMultiFrameImage
com.threerings.media.tile.TileSubsetMultiFrameImage
public class TileSubsetMultiFrameImage
A MultiFrameImage implementation that obtains its image frames
from a tileset but that only uses a subset of the tiles available.
| Field Summary | |
|---|---|
protected int |
_startIdx
Index of the tile with which we begin this subset. |
| Fields inherited from class com.threerings.media.tile.TileMultiFrameImage |
|---|
_source, _tileCount |
| Constructor Summary | |
|---|---|
TileSubsetMultiFrameImage(TileSet source,
Colorization[] zations,
int startIdx,
int numTiles)
Creates a recoolored tile MFI which will obtain its image frames from the specified source tileset. |
|
TileSubsetMultiFrameImage(TileSet source,
int startIdx,
int numTiles)
Creates a tile MFI which will obtain its image frames from the specified source tileset. |
|
| Method Summary | |
|---|---|
int |
getHeight(int index)
Returns the height of the specified frame image. |
int |
getWidth(int index)
Returns the width of the specified frame image. |
boolean |
hitTest(int index,
int x,
int y)
Returns true if the specified frame contains a non-transparent pixel at the specified coordinates. |
void |
paintFrame(Graphics2D g,
int index,
int x,
int y)
Renders the specified frame into the specified graphics object at the specified coordinates. |
| Methods inherited from class com.threerings.media.tile.TileMultiFrameImage |
|---|
getFrameCount |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int _startIdx
| Constructor Detail |
|---|
public TileSubsetMultiFrameImage(TileSet source,
int startIdx,
int numTiles)
public TileSubsetMultiFrameImage(TileSet source,
Colorization[] zations,
int startIdx,
int numTiles)
| Method Detail |
|---|
public int getWidth(int index)
MultiFrameImage
getWidth in interface MultiFrameImagegetWidth in class TileMultiFrameImagepublic int getHeight(int index)
MultiFrameImage
getHeight in interface MultiFrameImagegetHeight in class TileMultiFrameImage
public void paintFrame(Graphics2D g,
int index,
int x,
int y)
MultiFrameImage
paintFrame in interface MultiFrameImagepaintFrame in class TileMultiFrameImage
public boolean hitTest(int index,
int x,
int y)
MultiFrameImage
hitTest in interface MultiFrameImagehitTest in class TileMultiFrameImage
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||