/** * Renders the current frame to the given <tt>Graphics</tt>. * * @param g the graphics to paint the image to * @param x the left coordinate to start painting at. * @param y the top coordinate to start painting at. * @param w the width of the paint area * @param h the height of the paint area */ private void render(Graphics g, int x, int y, int w, int h) { if (useVolatile) { volatileRender(g, x, y, w, h); } else { heapRender(g, x, y, w, h); } // // Restart the resource reaper timer if neccessary // if (!frameRendered) { frameRendered = true; if (!resourceTimer.isRunning()) { resourceTimer.restart(); } } }