|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.RepaintManager
nl.lxtreme.ols.util.swing.ThreadViolationDetectionRepaintManager
public final class ThreadViolationDetectionRepaintManager
ThreadViolationDetectionRepaintManager provides a custom repaint manager that can be used to determine whether all Swing components are correctly created on the EDT.
Code originates from the SwingHelper project, for more information see: "https://swinghelper.dev.java.net/".
Constructor Summary | |
---|---|
ThreadViolationDetectionRepaintManager()
Creates a new ThreadViolationDetectionRepaintManager instance. |
|
ThreadViolationDetectionRepaintManager(boolean aCompleteCheck)
Creates a new ThreadViolationDetectionRepaintManager instance. |
Method Summary | |
---|---|
void |
addDirtyRegion(JComponent aComponent,
int aX,
int aY,
int aWidth,
int aHeight)
|
void |
addInvalidComponent(JComponent aComponent)
|
static ThreadViolationDetectionRepaintManager |
install()
Creates a new
and sets it as the current repaint manager. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ThreadViolationDetectionRepaintManager()
public ThreadViolationDetectionRepaintManager(boolean aCompleteCheck)
aCompleteCheck
- true
to perform a full check on all stack frames,
false
to only at the first few.Method Detail |
---|
public static ThreadViolationDetectionRepaintManager install()
ThreadViolationDetectionRepaintManager
and sets it as the current repaint manager.
On Sun JVMs, this method will install the new repaint manager the first
time only. Once installed, subsequent calls to this method will not install
new repaint managers. This optimization may not work on non-Sun JVMs, since
we use reflection to check if a CheckThreadViolationRepaintManager
is already installed.
RepaintManager.setCurrentManager(RepaintManager)
public void addDirtyRegion(JComponent aComponent, int aX, int aY, int aWidth, int aHeight)
addDirtyRegion
in class RepaintManager
RepaintManager.addDirtyRegion(javax.swing.JComponent, int,
int, int, int)
public void addInvalidComponent(JComponent aComponent)
addInvalidComponent
in class RepaintManager
RepaintManager.addInvalidComponent(javax.swing.JComponent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |