/** * Simple signature for background hides need to call app * @param col int */ public void background(int col) { this.app.background(col); }
public void draw() { if (requestedRecord) { recording = true; app.beginRecord(PDF, recFilename); } app.background(bckColor); state = DRAW; clearDrawn(); root.drawChildren(); state = IDLE; if (recording) { app.endRecord(); requestedRecord = false; } if (SHOW_DEBUG_INFO && app.frameCount % 180 == 0) { System.out.println("framerate: " + app.frameRate); System.out.println("number of drawn widgets : " + drawnWidgets.size()); } }