Пример #1
0
 public Rectangle getAndClearRepaintBounds() {
   updateRange();
   Rectangle rect = range.getRect();
   range.clear();
   updateRange();
   return rect;
 }
Пример #2
0
 /** Resizes the repaint range */
 private void updateRange() {
   range.addRect(curve.getBounds());
 }