/** * Draw the Shape. * * @param page the page you wish to draw the shape on */ public void draw(Graphics page) { Color savedColor = page.getColor(); page.setColor(color); drawShape(page); page.setColor(savedColor); }
@Override public void drawShape(GL gl) { for (Shape shape : parts) { shape.drawShape(gl); } }