public class CompositedMultiFrameImage extends Object implements TrimmedMultiFrameImage
CompositedActionFrames.| Constructor and Description |
|---|
CompositedMultiFrameImage(ImageManager imgr,
CompositedActionFrames.ComponentFrames[] sources,
String action,
int orient) |
| Modifier and Type | Method and Description |
|---|---|
long |
getEstimatedMemoryUsage()
Returns the estimated memory usage of our composited frame images.
|
int |
getFrameCount()
Returns the number of frames in this multi-frame image.
|
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.
|
public CompositedMultiFrameImage(ImageManager imgr, CompositedActionFrames.ComponentFrames[] sources, String action, int orient)
public int getFrameCount()
MultiFrameImagegetFrameCount in interface MultiFrameImagepublic int getWidth(int index)
MultiFrameImagegetWidth in interface MultiFrameImagepublic int getHeight(int index)
MultiFrameImagegetHeight in interface MultiFrameImagepublic int getXOrigin(int index)
public int getYOrigin(int index)
public void paintFrame(Graphics2D g, int index, int x, int y)
MultiFrameImagepaintFrame in interface MultiFrameImagepublic boolean hitTest(int index,
int x,
int y)
MultiFrameImagehitTest in interface MultiFrameImagepublic void getTrimmedBounds(int index,
Rectangle bounds)
TrimmedMultiFrameImagegetTrimmedBounds in interface TrimmedMultiFrameImagepublic long getEstimatedMemoryUsage()
Copyright © 2015. All rights reserved.