code: public void strokeRoundRectangle(Rectangle rect, Color color, float linewidth, float r) {
  		template.saveState();
  		setStroke(color, linewidth, null);
  		template.roundRectangle(origX + rect.getLeft(), origY + rect.getBottom(), rect.getWidth(), rect.getHeight(), r);
  		template.stroke();
  		template.restoreState();
  	}
docs: Draw a rounded rectangular boundary.
  
  @param rect rectangle
  @param color colour
  @param linewidth line width
  @param r radius for rounded corners