title: How can I draw a portion of my Java2D simulation that doesn't change to an image/buffer so I don't have to redraw it's primitives each time?
body: <p>How can I draw a portion of my Java2D simulation that doesn't change to an image/buffer so I don't have to redraw it's primitives each time?</p>
  
  <p>I have a portion of my Java2D simulation that requires me to draw thousands of small lines.  However, this portion of the app doesn't change once drawn so it doesn't make sense to re-draw thousands of primitives each loop iteration (doing active rendering).</p>
  
  <p>So, what object do I use to draw to and preserve it, and then allow me to simply draw this whole image to my canvas, and then draw on top of it what changes?</p>