public abstract class VolatileMirage extends Object implements Mirage
| Modifier and Type | Method and Description |
|---|---|
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 |
getX()
Returns the x offset into our source image, which is generally zero but
may be non-zero for a mirage that obtains its data from a region of its
source image.
|
int |
getY()
Returns the y offset into our source image, which is generally zero but
may be non-zero for a mirage that obtains its data from a region of its
source 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.
|
String |
toString() |
public void paint(Graphics2D gfx, int x, int y)
Miragepublic int getX()
public int getY()
public int getWidth()
Miragepublic int getHeight()
Miragepublic boolean hitTest(int x,
int y)
Miragepublic long getEstimatedMemoryUsage()
MiragegetEstimatedMemoryUsage in interface Miragepublic BufferedImage getSnapshot()
MiragegetSnapshot in interface MirageCopyright © 2015. All rights reserved.