Package org.openstreetmap.josm.gui.util
Class CheckThreadViolationRepaintManager
- java.lang.Object
-
- javax.swing.RepaintManager
-
- org.openstreetmap.josm.gui.util.CheckThreadViolationRepaintManager
-
public class CheckThreadViolationRepaintManager extends RepaintManager
This class is used to detect Event Dispatch Thread rule violations
This is a modification of original idea of Scott Delap.
-
-
Field Summary
Fields Modifier and Type Field Description private WeakReference<JComponent>
lastComponent
-
Constructor Summary
Constructors Constructor Description CheckThreadViolationRepaintManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDirtyRegion(JComponent component, int x, int y, int w, int h)
void
addInvalidComponent(JComponent component)
private void
checkThreadViolations(JComponent c)
protected static void
violationFound(JComponent c, StackTraceElement[] stackTrace)
-
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
-
-
-
-
Field Detail
-
lastComponent
private WeakReference<JComponent> lastComponent
-
-
Constructor Detail
-
CheckThreadViolationRepaintManager
public CheckThreadViolationRepaintManager()
-
-
Method Detail
-
addInvalidComponent
public void addInvalidComponent(JComponent component)
- Overrides:
addInvalidComponent
in classRepaintManager
-
addDirtyRegion
public void addDirtyRegion(JComponent component, int x, int y, int w, int h)
- Overrides:
addDirtyRegion
in classRepaintManager
-
checkThreadViolations
private void checkThreadViolations(JComponent c)
-
violationFound
protected static void violationFound(JComponent c, StackTraceElement[] stackTrace)
-
-