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.
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.
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.