|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.cast.bundle.BundledComponentRepository.TileSetFrameImage
public static class BundledComponentRepository.TileSetFrameImage
Used to provide multiframe images using data obtained from a tileset.
| Field Summary | |
|---|---|
protected ActionSequence |
_actseq
The action sequence for which we're providing frame images. |
protected int |
_dx
A translation to apply to the images. |
protected int |
_dy
A translation to apply to the images. |
protected int |
_fcount
Frame and orientation counts. |
protected int |
_ocount
Frame and orientation counts. |
protected IntIntMap |
_orients
A mapping from orientation code to animation sequence index. |
protected TileSet |
_set
The tileset from which we obtain our frame images. |
| Constructor Summary | |
|---|---|
BundledComponentRepository.TileSetFrameImage(TileSet set,
ActionSequence actseq)
Constructs a tileset frame image with the specified tileset and for the specified orientation. |
|
BundledComponentRepository.TileSetFrameImage(TileSet set,
ActionSequence actseq,
int dx,
int dy)
Constructs a tileset frame image with the specified tileset and for the specified orientation, with an optional translation. |
|
| Method Summary | |
|---|---|
ActionFrames |
cloneColorized(Colorization[] zations)
Creates a clone of these action frames which will have the supplied colorizations applied to the frame images. |
ActionFrames |
cloneTranslated(int dx,
int dy)
Creates a clone of these action frames which will have the supplied translation applied to the frame images. |
TrimmedMultiFrameImage |
getFrames(int orient)
Returns the multi-frame image that comprises the frames for the specified orientation. |
int |
getOrientationCount()
Returns the number of orientations available in this set of action frames. |
Tile |
getTile(int orient,
int index)
|
protected int |
getTileIndex(int orient,
int index)
|
Mirage |
getTileMirage(int orient,
int index)
|
void |
getTrimmedBounds(int orient,
int index,
Rectangle bounds)
|
int |
getXOrigin(int orient,
int index)
Returns the x offset from the upper left of the image to the "origin" for this character frame. |
int |
getYOrigin(int orient,
int index)
Returns the y offset from the upper left of the image to the "origin" for this character frame. |
protected void |
paintTile(Graphics2D g,
int orient,
int index,
int x,
int y)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected TileSet _set
protected ActionSequence _actseq
protected int _dx
protected int _dy
protected int _fcount
protected int _ocount
protected IntIntMap _orients
| Constructor Detail |
|---|
public BundledComponentRepository.TileSetFrameImage(TileSet set,
ActionSequence actseq)
public BundledComponentRepository.TileSetFrameImage(TileSet set,
ActionSequence actseq,
int dx,
int dy)
| Method Detail |
|---|
public int getOrientationCount()
ActionFrames
getOrientationCount in interface ActionFramespublic TrimmedMultiFrameImage getFrames(int orient)
ActionFrames
getFrames in interface ActionFrames
protected void paintTile(Graphics2D g,
int orient,
int index,
int x,
int y)
public void getTrimmedBounds(int orient,
int index,
Rectangle bounds)
public int getXOrigin(int orient,
int index)
ActionFrames
getXOrigin in interface ActionFrames
public int getYOrigin(int orient,
int index)
ActionFrames
getYOrigin in interface ActionFramespublic ActionFrames cloneColorized(Colorization[] zations)
ActionFrames
cloneColorized in interface ActionFrames
public ActionFrames cloneTranslated(int dx,
int dy)
ActionFrames
cloneTranslated in interface ActionFrames
protected int getTileIndex(int orient,
int index)
public Tile getTile(int orient,
int index)
public Mirage getTileMirage(int orient,
int index)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||