public class PaintedImage extends Object implements PaintedObject, ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
PaintedImage(Image image,
Rectangle2D bounds) |
| Modifier and Type | Method and Description |
|---|---|
Rectangle2D |
getBounds()
Get the bounding box of the object when painted.
|
boolean |
imageUpdate(Image image,
int flags,
int x,
int y,
int w,
int h) |
void |
paint(Graphics2D g)
Paint the shape.
|
public PaintedImage(Image image, Rectangle2D bounds)
public Rectangle2D getBounds()
getBounds in interface PaintedObjectpublic void paint(Graphics2D g)
paint in interface PaintedObjectpublic boolean imageUpdate(Image image, int flags, int x, int y, int w, int h)
imageUpdate in interface ImageObserverCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.