|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.RepaintManager
fr.lip6.sma.simulacion.test.ThreadCheckingRepaintManager
public final class ThreadCheckingRepaintManager
Class for a repaint manager that checks that Swing components are only modified within the Swing thread. From: http://www.clientjava.com/blog/2004/08/20/1093059428000.html
| Constructor Summary | |
|---|---|
private |
ThreadCheckingRepaintManager()
Default constructor. |
| Method Summary | |
|---|---|
void |
addDirtyRegion(JComponent inComponent,
int inXCoord,
int inYCoord,
int inWidth,
int inHeight)
|
void |
addInvalidComponent(JComponent inComponent)
|
private static void |
checkThread()
Check we're in the Swing thread and dump the stack otherwise. |
static void |
install()
Install the repaint manager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
private ThreadCheckingRepaintManager()
| Method Detail |
|---|
public void addInvalidComponent(JComponent inComponent)
addInvalidComponent in class RepaintManager
public void addDirtyRegion(JComponent inComponent,
int inXCoord,
int inYCoord,
int inWidth,
int inHeight)
addDirtyRegion in class RepaintManagerprivate static void checkThread()
public static void install()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||