code: public void fillRectangle(Rectangle rect, Color color) {
  		template.saveState();
  		setFill(color);
  		template.rectangle(origX + rect.getLeft(), origY + rect.getBottom(), rect.getWidth(), rect.getHeight());
  		template.fill();
  		template.restoreState();
  	}
docs: Draw a rectangle's interior with this color.
  
  @param rect rectangle
  @param color colour