Package ca.cgjennings.ui.debug
Class TracingRepaintManager
- java.lang.Object
-
- javax.swing.RepaintManager
-
- ca.cgjennings.ui.debug.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
-
-
Constructor Summary
Constructors Constructor Description TracingRepaintManager()
TracingRepaintManager(int maxStackTraceLength)
-
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
-
-
-
-
Method Detail
-
addDirtyRegion
public void addDirtyRegion(javax.swing.JComponent c, int x, int y, int w, int h)
- Overrides:
addDirtyRegion
in classjavax.swing.RepaintManager
-
install
public void install()
-
installDefault
public static void installDefault()
-
isComponentOfInterest
public boolean isComponentOfInterest(javax.swing.JComponent c)
-
-