Example #1
0
 /**
  * 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);
 }
Example #2
0
 @Override
 public void drawShape(GL gl) {
   for (Shape shape : parts) {
     shape.drawShape(gl);
   }
 }