diva.util.java2d
Interface PaintedObject

All Known Subinterfaces:
PaintedGraphic
All Known Implementing Classes:
AbstractPaintedGraphic, PaintedImage, PaintedList, PaintedPath, PaintedShape, PaintedString

Deprecated. Will be removed in Diva 0.4. Use diva.compat.canvas if needed.

public interface PaintedObject

The interface for a SMALL set of utility classes that paint shapes or other kinds of graphical objects. The purpose of these classes is to provide a simple interface for some of the more complicated things in Java2D, like strings and Images.

Version:
$Revision: 1.7 $
Author:
John Reekie

Method Summary
 Rectangle2D getBounds()
          Deprecated. Get the bounding box of the object when painted.
 void paint(Graphics2D g)
          Deprecated. Paint the shape.
 

Method Detail

getBounds

Rectangle2D getBounds()
Deprecated. 
Get the bounding box of the object when painted. Implementations of this method should take account of the thickness of the stroke, if there is one.


paint

void paint(Graphics2D g)
Deprecated. 
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.



Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.