public class TileSubsetMultiFrameImage extends TileMultiFrameImage
MultiFrameImage implementation that obtains its image frames
from a tileset but that only uses a subset of the tiles available.| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getFrameCountpublic TileSubsetMultiFrameImage(TileSet source, int startIdx, int numTiles)
public TileSubsetMultiFrameImage(TileSet source, Colorization[] zations, int startIdx, int numTiles)
public int getWidth(int index)
MultiFrameImagegetWidth in interface MultiFrameImagegetWidth in class TileMultiFrameImagepublic int getHeight(int index)
MultiFrameImagegetHeight in interface MultiFrameImagegetHeight in class TileMultiFrameImagepublic void paintFrame(Graphics2D g, int index, int x, int y)
MultiFrameImagepaintFrame in interface MultiFrameImagepaintFrame in class TileMultiFrameImagepublic boolean hitTest(int index,
int x,
int y)
MultiFrameImagehitTest in interface MultiFrameImagehitTest in class TileMultiFrameImageCopyright © 2015. All rights reserved.