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
Links
| Constructor and Description |
|---|
CheckThreadViolationRepaintManager() |
CheckThreadViolationRepaintManager(RepaintManager delegate) |
public CheckThreadViolationRepaintManager()
public CheckThreadViolationRepaintManager(RepaintManager delegate)
public boolean isCompleteCheck()
public void setCompleteCheck(boolean completeCheck)
public void addInvalidComponent(JComponent component)
addInvalidComponent in class RepaintManagerpublic void addDirtyRegion(JComponent component, int x, int y, int w, int h)
addDirtyRegion in class RepaintManagerprotected void violationFound(JComponent c, StackTraceElement[] stackTrace)
public static RepaintManager currentManager(Component component)
public static RepaintManager currentManager(JComponent jComponent)
public Rectangle getDirtyRegion(JComponent jComponent)
getDirtyRegion in class RepaintManagerpublic Dimension getDoubleBufferMaximumSize()
getDoubleBufferMaximumSize in class RepaintManagerpublic Image getOffscreenBuffer(Component component, int i, int i1)
getOffscreenBuffer in class RepaintManagerpublic Image getVolatileOffscreenBuffer(Component component, int i, int i1)
getVolatileOffscreenBuffer in class RepaintManagerpublic boolean isCompletelyDirty(JComponent jComponent)
isCompletelyDirty in class RepaintManagerpublic boolean isDoubleBufferingEnabled()
isDoubleBufferingEnabled in class RepaintManagerpublic void markCompletelyClean(JComponent jComponent)
markCompletelyClean in class RepaintManagerpublic void markCompletelyDirty(JComponent jComponent)
markCompletelyDirty in class RepaintManagerpublic void paintDirtyRegions()
paintDirtyRegions in class RepaintManagerpublic void removeInvalidComponent(JComponent jComponent)
removeInvalidComponent in class RepaintManagerpublic static void setCurrentManager(RepaintManager repaintManager)
public void setDoubleBufferingEnabled(boolean b)
setDoubleBufferingEnabled in class RepaintManagerpublic void setDoubleBufferMaximumSize(Dimension dimension)
setDoubleBufferMaximumSize in class RepaintManagerpublic String toString()
toString in class RepaintManagerpublic void validateInvalidComponents()
validateInvalidComponents in class RepaintManagerpublic void addDirtyRegion(Window window, int i, int i1, int i2, int i3)
addDirtyRegion in class RepaintManagerpublic void addDirtyRegion(Applet applet, int i, int i1, int i2, int i3)
addDirtyRegion in class RepaintManager