Class TracingRepaintManager


  • public class TracingRepaintManager
    extends javax.swing.RepaintManager
    Can be used to track down the cause of excessive repaints. Call the static installDefault method for simple use. Override isComponentOfInterest and call install for more fine-grained use.
    Author:
    Chris Jennings
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addDirtyRegion​(javax.swing.JComponent c, int x, int y, int w, int h)  
      void install()  
      static void installDefault()  
      boolean isComponentOfInterest​(javax.swing.JComponent c)  
      • Methods inherited from class javax.swing.RepaintManager

        addDirtyRegion, addDirtyRegion, addInvalidComponent, currentManager, currentManager, getDirtyRegion, getDoubleBufferMaximumSize, getOffscreenBuffer, getVolatileOffscreenBuffer, isCompletelyDirty, isDoubleBufferingEnabled, markCompletelyClean, markCompletelyDirty, paintDirtyRegions, removeInvalidComponent, setCurrentManager, setDoubleBufferingEnabled, setDoubleBufferMaximumSize, toString, validateInvalidComponents
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TracingRepaintManager

        public TracingRepaintManager()
      • TracingRepaintManager

        public TracingRepaintManager​(int maxStackTraceLength)
    • Method Detail

      • addDirtyRegion

        public void addDirtyRegion​(javax.swing.JComponent c,
                                   int x,
                                   int y,
                                   int w,
                                   int h)
        Overrides:
        addDirtyRegion in class javax.swing.RepaintManager
      • install

        public void install()
      • installDefault

        public static void installDefault()
      • isComponentOfInterest

        public boolean isComponentOfInterest​(javax.swing.JComponent c)