Exploring drawing different shapes on a canvas in Java