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