Package org.fest.swing.edt
Class CheckThreadViolationRepaintManager
java.lang.Object
javax.swing.RepaintManager
org.fest.swing.edt.CheckThreadViolationRepaintManager
- Direct Known Subclasses:
FailOnThreadViolationRepaintManager
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
private WeakReference<JComponent>
private final org.fest.util.StackTraces
-
Constructor Summary
ConstructorsConstructorDescriptionCheckThreadViolationRepaintManager
(boolean completeCheck) CheckThreadViolationRepaintManager
(boolean completeCheck, org.fest.util.StackTraces stackTraces) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDirtyRegion
(JComponent component, int x, int y, int w, int h) void
addInvalidComponent
(JComponent component) private void
(package private) abstract 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 Details
-
completeCheck
private final boolean completeCheck -
stackTraces
private final org.fest.util.StackTraces stackTraces -
lastComponent
-
-
Constructor Details
-
CheckThreadViolationRepaintManager
CheckThreadViolationRepaintManager() -
CheckThreadViolationRepaintManager
CheckThreadViolationRepaintManager(boolean completeCheck) -
CheckThreadViolationRepaintManager
CheckThreadViolationRepaintManager(boolean completeCheck, org.fest.util.StackTraces stackTraces)
-
-
Method Details
-
addInvalidComponent
- Overrides:
addInvalidComponent
in classRepaintManager
-
addDirtyRegion
- Overrides:
addDirtyRegion
in classRepaintManager
-
checkThreadViolations
-
violationFound
-