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 RepaintManager
public void addDirtyRegion(JComponent component, int x, int y, int w, int h)
addDirtyRegion
in class RepaintManager
protected 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 RepaintManager
public Dimension getDoubleBufferMaximumSize()
getDoubleBufferMaximumSize
in class RepaintManager
public Image getOffscreenBuffer(Component component, int i, int i1)
getOffscreenBuffer
in class RepaintManager
public Image getVolatileOffscreenBuffer(Component component, int i, int i1)
getVolatileOffscreenBuffer
in class RepaintManager
public boolean isCompletelyDirty(JComponent jComponent)
isCompletelyDirty
in class RepaintManager
public boolean isDoubleBufferingEnabled()
isDoubleBufferingEnabled
in class RepaintManager
public void markCompletelyClean(JComponent jComponent)
markCompletelyClean
in class RepaintManager
public void markCompletelyDirty(JComponent jComponent)
markCompletelyDirty
in class RepaintManager
public void paintDirtyRegions()
paintDirtyRegions
in class RepaintManager
public void removeInvalidComponent(JComponent jComponent)
removeInvalidComponent
in class RepaintManager
public static void setCurrentManager(RepaintManager repaintManager)
public void setDoubleBufferingEnabled(boolean b)
setDoubleBufferingEnabled
in class RepaintManager
public void setDoubleBufferMaximumSize(Dimension dimension)
setDoubleBufferMaximumSize
in class RepaintManager
public String toString()
toString
in class RepaintManager
public void validateInvalidComponents()
validateInvalidComponents
in class RepaintManager
public void addDirtyRegion(Window window, int i, int i1, int i2, int i3)
addDirtyRegion
in class RepaintManager
public void addDirtyRegion(Applet applet, int i, int i1, int i2, int i3)
addDirtyRegion
in class RepaintManager