org.jdesktop.swinghelper.debug
Class CheckThreadViolationRepaintManager
java.lang.Object
javax.swing.RepaintManager
org.jdesktop.swinghelper.debug.CheckThreadViolationRepaintManager
public class CheckThreadViolationRepaintManager
- extends RepaintManager
This class is used to detect Event Dispatch Thread rule violations
See How to Use Threads
for more info
This is a modification of original idea of Scott Delap
Initial version of ThreadCheckingRepaintManager can be found here
Easily Find Swing Threading Mistakes
- Author:
- Scott Delap, Alexander Potochkin
https://swinghelper.dev.java.net/
Methods inherited from class javax.swing.RepaintManager |
addDirtyRegion, addDirtyRegion, currentManager, currentManager, getDirtyRegion, getDoubleBufferMaximumSize, getOffscreenBuffer, getVolatileOffscreenBuffer, isCompletelyDirty, isDoubleBufferingEnabled, markCompletelyClean, markCompletelyDirty, paintDirtyRegions, removeInvalidComponent, setCurrentManager, setDoubleBufferingEnabled, setDoubleBufferMaximumSize, toString, validateInvalidComponents |
CheckThreadViolationRepaintManager
public CheckThreadViolationRepaintManager(boolean completeCheck)
CheckThreadViolationRepaintManager
public CheckThreadViolationRepaintManager()
isCompleteCheck
public boolean isCompleteCheck()
setCompleteCheck
public void setCompleteCheck(boolean completeCheck)
addInvalidComponent
public void addInvalidComponent(JComponent component)
- Overrides:
addInvalidComponent
in class RepaintManager
addDirtyRegion
public void addDirtyRegion(JComponent component,
int x,
int y,
int w,
int h)
- Overrides:
addDirtyRegion
in class RepaintManager
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
test
static void test()
imageUpdateTest
static void imageUpdateTest()
repaintTest
static void repaintTest()