title: Graphics2D - Rotating Shapes on a Graphics2D object
body: <p>I have a <code>Graphics2D</code> object which I use to draw on my <code>Canvas</code>. I draw multiple shapes on the <code>Canvas</code> and want to transform only one (or part) of them.</p>
  
  <p>I'll try to keep this simple:</p>
  
  <pre><code>void render(Graphics2D g) {
      ... // Draw shape 1
      ... // Draw shape 2
      ... // Draw shape 3
  }
  </code></pre>
  
  <p><strong>How would I go about rotating shape 2 while leaving shape 1 and 3 intact?</strong> By "rotate" I mean rotating around its center point, which we can define as <code>x</code> and <code>y</code> for example.</p>
  
  <p>I've been looking for a way to do this for a while now, but couldn't find anything that works the way I want it to.</p>
  
  <p>Is there any simple way to do this?</p>