|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.RepaintManager
net.sourceforge.atunes.CheckThreadViolationRepaintManager
public class CheckThreadViolationRepaintManager
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
Constructor Summary | |
---|---|
CheckThreadViolationRepaintManager()
Instantiates a new check thread violation repaint manager. |
|
CheckThreadViolationRepaintManager(boolean completeCheck)
Instantiates a new check thread violation repaint manager. |
Method Summary | |
---|---|
void |
addDirtyRegion(javax.swing.JComponent component,
int x,
int y,
int w,
int h)
|
void |
addInvalidComponent(javax.swing.JComponent component)
|
boolean |
isCompleteCheck()
Checks if is complete check. |
static void |
main(java.lang.String[] args)
The main method. |
void |
setCompleteCheck(boolean completeCheck)
Sets the complete check. |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CheckThreadViolationRepaintManager()
public CheckThreadViolationRepaintManager(boolean completeCheck)
completeCheck
- the complete checkMethod Detail |
---|
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- the arguments
java.lang.Exception
- the exceptionpublic void addDirtyRegion(javax.swing.JComponent component, int x, int y, int w, int h)
addDirtyRegion
in class javax.swing.RepaintManager
public void addInvalidComponent(javax.swing.JComponent component)
addInvalidComponent
in class javax.swing.RepaintManager
public boolean isCompleteCheck()
public void setCompleteCheck(boolean completeCheck)
completeCheck
- the new complete check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |