Package rma.util.debug
Class CheckThreadViolationRepaintManager
java.lang.Object
javax.swing.RepaintManager
rma.util.debug.CheckThreadViolationRepaintManager
- Direct Known Subclasses:
LogViolationRepaintManager
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.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDirtyRegion
(JComponent component, int x, int y, int w, int h) void
addInvalidComponent
(JComponent component) static <T> T
checkNotNull
(T reference) 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
-
Method Details
-
addInvalidComponent
- Overrides:
addInvalidComponent
in classRepaintManager
-
checkNotNull
public static <T> T checkNotNull(T reference) -
addDirtyRegion
- Overrides:
addDirtyRegion
in classRepaintManager
-