Create a visual graph with rectangles and ellipses, implemented in Java