public class PaintedImage extends java.lang.Object implements PaintedObject, java.awt.image.ImageObserver
Constructor and Description |
---|
PaintedImage(java.awt.Image image,
java.awt.geom.Rectangle2D bounds)
Construct a painted image.
|
Modifier and Type | Method and Description |
---|---|
java.awt.geom.Rectangle2D |
getBounds()
Get the bounding box of the object when painted.
|
boolean |
imageUpdate(java.awt.Image image,
int flags,
int x,
int y,
int w,
int h) |
void |
paint(java.awt.Graphics2D g)
Paint the shape.
|
public PaintedImage(java.awt.Image image, java.awt.geom.Rectangle2D bounds)
image
- The imagebounds
- The boundspublic java.awt.geom.Rectangle2D getBounds()
getBounds
in interface PaintedObject
public void paint(java.awt.Graphics2D g)
paint
in interface PaintedObject
public boolean imageUpdate(java.awt.Image image, int flags, int x, int y, int w, int h)
imageUpdate
in interface java.awt.image.ImageObserver