|
|||||||||
| 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.CompositedShadowImage
public class CompositedShadowImage
Used to composite the special shadow action frames for a particular
orientation of a CompositedActionFrames.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.threerings.cast.CompositedMultiFrameImage |
|---|
CompositedMultiFrameImage.CompositedVolatileMirage, CompositedMultiFrameImage.SubmirageForwarder |
| Field Summary | |
|---|---|
protected AlphaComposite |
_shadowAlpha
The alpha value at which we render our shadow. |
| Fields inherited from class com.threerings.cast.CompositedMultiFrameImage |
|---|
_action, _images, _imgr, _orient, _sources |
| Constructor Summary | |
|---|---|
CompositedShadowImage(ImageManager imgr,
CompositedActionFrames.ComponentFrames[] sources,
String action,
int orient,
float shadowAlpha)
|
|
| 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 |
| Field Detail |
|---|
protected AlphaComposite _shadowAlpha
| Constructor Detail |
|---|
public CompositedShadowImage(ImageManager imgr,
CompositedActionFrames.ComponentFrames[] sources,
String action,
int orient,
float shadowAlpha)
| 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 CompositedMultiFrameImageprotected CompositedMirage createCompositedMirage(int index)
CompositedMultiFrameImage
createCompositedMirage 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 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 | ||||||||