|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.RepaintManager
spin.over.CheckingRepaintManager
public class CheckingRepaintManager
A repaintManager that checks bad access - i.e. access from non EDT - to Swing components. Install with:
RepaintManager.setCurrentManager(new CheckingRepaintManager());Based on an idea by Scott Delap (http://www.clientjava.com).
RepaintManager| Constructor Summary | |
|---|---|
CheckingRepaintManager()
|
|
| Method Summary | |
|---|---|
void |
addDirtyRegion(javax.swing.JComponent component,
int x,
int y,
int w,
int h)
Overriden to check EDT rule. |
void |
addInvalidComponent(javax.swing.JComponent component)
Overriden to check EDT rule. |
protected void |
checkEDTRule(java.awt.Component component)
Check EDT rule on access to the given component. |
protected void |
indicate(EDTRuleViolation violation)
Indicate a violation of the EDT rule. |
protected boolean |
isLiableToEDTRule(java.lang.StackTraceElement element)
Is the given stackTraceElement liable to the EDT rule. |
protected boolean |
violatesEDTRule(java.awt.Component component)
Does acces to the given component violate the EDT rule. |
| Methods inherited from class javax.swing.RepaintManager |
|---|
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 CheckingRepaintManager()
| Method Detail |
|---|
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.RepaintManagerprotected void checkEDTRule(java.awt.Component component)
component - component to be repaintedprotected boolean violatesEDTRule(java.awt.Component component)
component - accessed component
true if EDT rule is violated
protected boolean isLiableToEDTRule(java.lang.StackTraceElement element)
throws java.lang.Exception
element - element
true if the className of the given element denotes
a subclass of java.awt.Component
java.lang.Exception - on any problem
protected void indicate(EDTRuleViolation violation)
throws EDTRuleViolation
violation - violation of EDT rule
EDTRuleViolation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||