Package org.openstreetmap.josm.gui.util
Class CheckThreadViolationRepaintManager
java.lang.Object
javax.swing.RepaintManager
org.openstreetmap.josm.gui.util.CheckThreadViolationRepaintManager
This class is used to detect Event Dispatch Thread rule violations
This is a modification of original idea of Scott Delap.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDirtyRegion(JComponent component, int x, int y, int w, int h) voidaddInvalidComponent(JComponent component) private voidprotected static voidviolationFound(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 Details
-
lastComponent
-
-
Constructor Details
-
CheckThreadViolationRepaintManager
public CheckThreadViolationRepaintManager()
-
-
Method Details
-
addInvalidComponent
- Overrides:
addInvalidComponentin classRepaintManager
-
addDirtyRegion
- Overrides:
addDirtyRegionin classRepaintManager
-
checkThreadViolations
-
violationFound
-