|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.cast.CompositedMultiFrameImage
com.threerings.cast.CompositedMaskedImage
public class CompositedMaskedImage
Used to composite action frames with mask frames.
| Nested Class Summary | |
|---|---|
protected class |
CompositedMaskedImage.MaskedMirage
Combines the image in the first source with the masks in the rest. |
| Nested classes/interfaces inherited from class com.threerings.cast.CompositedMultiFrameImage |
|---|
CompositedMultiFrameImage.CompositedVolatileMirage, CompositedMultiFrameImage.SubmirageForwarder |
| Field Summary |
|---|
| Fields inherited from class com.threerings.cast.CompositedMultiFrameImage |
|---|
_action, _images, _imgr, _orient, _sources |
| Constructor Summary | |
|---|---|
CompositedMaskedImage(ImageManager imgr,
CompositedActionFrames.ComponentFrames[] sources,
String action,
int orient)
|
|
| Method Summary | |
|---|---|
protected CompositedMirage |
createCompositedMirage(int index)
Creates a composited image for the specified frame. |
int |
getHeight(int index)
Returns the height of the specified frame image. |
void |
getTrimmedBounds(int index,
Rectangle bounds)
Fills in the minimum bounding rectangle for this image that contains all non-transparent pixels. |
int |
getWidth(int index)
Returns the width of the specified frame image. |
protected int |
getX(int index)
|
int |
getXOrigin(int index)
|
protected int |
getY(int index)
|
int |
getYOrigin(int index)
|
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.cast.CompositedMultiFrameImage |
|---|
getEstimatedMemoryUsage, getFrame, getFrameCount |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositedMaskedImage(ImageManager imgr,
CompositedActionFrames.ComponentFrames[] sources,
String action,
int orient)
| Method Detail |
|---|
public int getWidth(int index)
MultiFrameImage
getWidth in interface MultiFrameImagegetWidth in class CompositedMultiFrameImagepublic int getHeight(int index)
MultiFrameImage
getHeight in interface MultiFrameImagegetHeight in class CompositedMultiFrameImagepublic int getXOrigin(int index)
getXOrigin in class CompositedMultiFrameImagepublic int getYOrigin(int index)
getYOrigin in class CompositedMultiFrameImage
public void paintFrame(Graphics2D g,
int index,
int x,
int y)
MultiFrameImage
paintFrame in interface MultiFrameImagepaintFrame in class CompositedMultiFrameImage
public boolean hitTest(int index,
int x,
int y)
MultiFrameImage
hitTest in interface MultiFrameImagehitTest in class CompositedMultiFrameImage
public void getTrimmedBounds(int index,
Rectangle bounds)
TrimmedMultiFrameImage
getTrimmedBounds in interface TrimmedMultiFrameImagegetTrimmedBounds in class CompositedMultiFrameImageprotected CompositedMirage createCompositedMirage(int index)
CompositedMultiFrameImage
createCompositedMirage in class CompositedMultiFrameImageprotected int getX(int index)
protected int getY(int index)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||