shapes[0] = new Rectangle2D.Double(10, 20, 30, 40);
shapes[1] = new Ellipse2D.Double(10, 20, 30, 40);
shapes[2] = new Area(ShapeUtilities.createSwatchShape());
Polyline2D polyline = new Polyline2D.Double(10, 20, 30, 40);
polyline.lineTo(50, 60);
polyline.lineTo(50, 60);
Polygon2D polygon = new Polygon2D.Double(10, 20);
polygon.lineTo(20, 30);
polygon.lineTo(40, 50);