Package diva.util.java2d
Class PaintedImage
- java.lang.Object
-
- diva.util.java2d.PaintedImage
-
- All Implemented Interfaces:
PaintedObject,java.awt.image.ImageObserver
public class PaintedImage extends java.lang.Object implements PaintedObject, java.awt.image.ImageObserver
Painted Images.- Since:
- Ptolemy II 1.0
- Version:
- $Id$
- Author:
- Steve Neuendorffer
-
-
Constructor Summary
Constructors Constructor Description PaintedImage(java.awt.Image image, java.awt.geom.Rectangle2D bounds)Construct a painted image.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.geom.Rectangle2DgetBounds()Get the bounding box of the object when painted.booleanimageUpdate(java.awt.Image image, int flags, int x, int y, int w, int h)voidpaint(java.awt.Graphics2D g)Paint the shape.
-
-
-
Method Detail
-
getBounds
public java.awt.geom.Rectangle2D getBounds()
Get the bounding box of the object when painted.- Specified by:
getBoundsin interfacePaintedObject
-
paint
public void paint(java.awt.Graphics2D g)
Paint the shape. Implementations are expected to redraw the entire object. Whether or not the paint overwrites fields in the graphics context such as the current paint, stroke, and composite, depends on the implementing class.- Specified by:
paintin interfacePaintedObject
-
imageUpdate
public boolean imageUpdate(java.awt.Image image, int flags, int x, int y, int w, int h)- Specified by:
imageUpdatein interfacejava.awt.image.ImageObserver
-
-