Drawing Process
The basic drawing process:
1. Specify the rendering attribute for the shape you want to draw and invoke a method such as setColor(…)
2. Define the shape you want to draw
3. Use the Graphics object to render the shape by calling a rendering method such as fillRect(…)
Java 2D provides additional features for:
- specifying paint styles
- defining complex shapes
- controlling the rendering process