Exemplo n.º 1
0
 private void iRender(RepeatingCommand rc, int graphs) {
   if (graphs > 1) {
     if (BrowserInfo.get().isIE8()) {
       /*
        * VML is so slow it needs to be done incrementally
        */
       Scheduler.get().scheduleIncremental(rc);
     } else {
       while (rc.execute()) {;
       }
     }
   } else if (graphs > 0) {
     rc.execute();
   }
 }
 private static void executeRepeatingCommand(RepeatingCommand cmd) {
   boolean repeat = true;
   while (repeat) {
     repeat = cmd.execute();
   }
 }