Figure 5.
Mandelbrot on Canvas
SWT calls the paintControl() method to repaint the canvas, which calls drawPoint() method to do the painting. The drawPoint() method calls setForeground() to display a selected color.