g2.setColor(shape.getStrokeColor());
g2.draw(path);
}
//sort so that the largest shapes are rendered first
Collections.sort(shapes, new ShapeAreaComparator());
//render the rest of the shapes
ArrayList<DiagramShape> pointMarkers = new ArrayList<DiagramShape>();
shapesIt = shapes.iterator();
while(shapesIt.hasNext()){