예제 #1
1
 final void disableTrueDoubleBuffering() {
   if (useTrueDoubleBuffering) {
     if (!IGNORE_DISABLE_TRUE_DOUBLE_BUFFERING) {
       if (LOG_DISABLE_TRUE_DOUBLE_BUFFERING) {
         System.out.println("Disabling true double buffering for " + this);
         Thread.dumpStack();
       }
       useTrueDoubleBuffering = false;
       RepaintManager.currentManager(this).doubleBufferingChanged(this);
     }
   }
 }
예제 #2
0
 /**
  * Repaints the specified rectangle of this component within <code>time</code> milliseconds. Refer
  * to <code>RepaintManager</code> for details on how the repaint is handled.
  *
  * @param time maximum time in milliseconds before update
  * @param x the <i>x</i> coordinate
  * @param y the <i>y</i> coordinate
  * @param width the width
  * @param height the height
  * @see RepaintManager
  * @since 1.6
  */
 public void repaint(long time, int x, int y, int width, int height) {
   if (RepaintManager.HANDLE_TOP_LEVEL_PAINT) {
     RepaintManager.currentManager(this).addDirtyRegion(this, x, y, width, height);
   } else {
     super.repaint(time, x, y, width, height);
   }
 }
예제 #3
0
 /**
  * {@inheritDoc}
  *
  * @since 1.6
  */
 public void setDoubleBuffered(boolean aFlag) {
   if (isDoubleBuffered() != aFlag) {
     super.setDoubleBuffered(aFlag);
     RepaintManager.currentManager(this).doubleBufferingChanged(this);
   }
 }