|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.cast.CompositedMultiFrameImage.SubmirageForwarder
protected class CompositedMultiFrameImage.SubmirageForwarder
A CompositedMirage that forwards all of its Mirage calls to a delegate Mirage.
| Field Summary | |
|---|---|
protected Mirage |
delegate
|
protected int |
x
|
protected int |
y
|
| Constructor Summary | |
|---|---|
CompositedMultiFrameImage.SubmirageForwarder(Mirage m,
int x,
int y)
|
|
| Method Summary | |
|---|---|
long |
getEstimatedMemoryUsage()
Returns an estimate of the memory consumed by this mirage's image raster data. |
int |
getHeight()
Returns the height of this mirage. |
BufferedImage |
getSnapshot()
Returns a snapshot of this mirage as a buffered image. |
int |
getWidth()
Returns the width of this mirage. |
int |
getXOrigin()
Returns the x offset into our image. |
int |
getYOrigin()
Returns the y offset into our image. |
boolean |
hitTest(int x,
int y)
Returns true if this mirage contains a non-transparent pixel at the specified coordinate. |
void |
paint(Graphics2D gfx,
int x,
int y)
Renders this mirage at the specified position in the supplied graphics context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int x
protected int y
protected Mirage delegate
| Constructor Detail |
|---|
public CompositedMultiFrameImage.SubmirageForwarder(Mirage m,
int x,
int y)
| Method Detail |
|---|
public int getXOrigin()
CompositedMirage
getXOrigin in interface CompositedMiragepublic int getYOrigin()
CompositedMirage
getYOrigin in interface CompositedMiragepublic long getEstimatedMemoryUsage()
Mirage
getEstimatedMemoryUsage in interface Miragepublic int getHeight()
Mirage
getHeight in interface Miragepublic BufferedImage getSnapshot()
Mirage
getSnapshot in interface Miragepublic int getWidth()
Mirage
getWidth in interface Mirage
public boolean hitTest(int x,
int y)
Mirage
hitTest in interface Mirage
public void paint(Graphics2D gfx,
int x,
int y)
Mirage
paint in interface Mirage
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||