|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.RepaintManager com.jidesoft.utils.ThreadCheckingRepaintManager
public class ThreadCheckingRepaintManager
For usage of this class, please refer to http://weblogs.java.net/blog/alexfromsun/archive/2006/02/debugging_swing.html
To use it, call RepaintManager.setCurrentManager(new ThreadCheckingRepaintManager()) then watch the print out from the console of all threading violations.
Constructor Summary | |
---|---|
ThreadCheckingRepaintManager()
Creates ThreadCheckingRepaintManager. |
|
ThreadCheckingRepaintManager(boolean checkIsShowing)
Creates ThreadCheckingRepaintManager. |
Method Summary | |
---|---|
void |
addDirtyRegion(JComponent jComponent,
int i,
int i1,
int i2,
int i3)
|
void |
addInvalidComponent(JComponent jComponent)
|
boolean |
isCompleteCheck()
Initially there was a rule that it is safe to create and use Swing components until they are realized but this rule is not valid any more, and now it is recommended to interact with Swing from EDT only. |
void |
setCompleteCheck(boolean completeCheck)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ThreadCheckingRepaintManager()
public ThreadCheckingRepaintManager(boolean checkIsShowing)
checkIsShowing
- true to only check showing components.Method Detail |
---|
public boolean isCompleteCheck()
public void setCompleteCheck(boolean completeCheck)
completeCheck
- true or false.isCompleteCheck()
public void addInvalidComponent(JComponent jComponent)
addInvalidComponent
in class RepaintManager
public void addDirtyRegion(JComponent jComponent, int i, int i1, int i2, int i3)
addDirtyRegion
in class RepaintManager
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |