title: Draw square with rounded corners
body: <p>I am able to draw a rect with sharp edges, now I need to make the sharp edges to rounded.</p>
  
  <p>How to do that?</p>
  
  <p>This is my code:</p>
  
  <pre><code> public void drawShape(Canvas canvas, Renderer renderer, float x, float y,
        int seriesIndex, Paint paint) {
      float halfShapeWidth = shape_width / 2;
      canvas.drawRect(x , y - halfShapeWidth, x + SHAPE_WIDTH, y + halfShapeWidth, paint);
     }
  </code></pre>
  
  <p>How to make this rounded rect by passing the same parameters?</p>