Graphics2D drawing methods
The new methods for drawing shapes are:
which uses the current Stroke for the boundary line, and
which uses the current Paint for the fill of the shape.
There are also new methods for changing the origin of the drawing:
g2d.translate (x0, y0) ;
g2d.rotate (angleinradians) ;
This enables each shape (on previous slide) to be defined with respect to its own (0, 0) origin.