public class CompositedMaskedImage extends CompositedMultiFrameImage
| Constructor and Description |
|---|
CompositedMaskedImage(ImageManager imgr,
CompositedActionFrames.ComponentFrames[] sources,
String action,
int orient) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
int |
getXOrigin(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.
|
getEstimatedMemoryUsage, getFrameCountpublic CompositedMaskedImage(ImageManager imgr, CompositedActionFrames.ComponentFrames[] sources, String action, int orient)
public int getWidth(int index)
MultiFrameImagegetWidth in interface MultiFrameImagegetWidth in class CompositedMultiFrameImagepublic int getHeight(int index)
MultiFrameImagegetHeight in interface MultiFrameImagegetHeight in class CompositedMultiFrameImagepublic int getXOrigin(int index)
getXOrigin in class CompositedMultiFrameImagepublic int getYOrigin(int index)
getYOrigin in class CompositedMultiFrameImagepublic void paintFrame(Graphics2D g, int index, int x, int y)
MultiFrameImagepaintFrame in interface MultiFrameImagepaintFrame in class CompositedMultiFrameImagepublic boolean hitTest(int index,
int x,
int y)
MultiFrameImagehitTest in interface MultiFrameImagehitTest in class CompositedMultiFrameImagepublic void getTrimmedBounds(int index,
Rectangle bounds)
TrimmedMultiFrameImagegetTrimmedBounds in interface TrimmedMultiFrameImagegetTrimmedBounds in class CompositedMultiFrameImageCopyright © 2015. All rights reserved.