public class FailOnThreadViolationRepaintManager extends RepaintManager
Fails a test when a Event Dispatch Thread rule violation is detected.
See How to Use Threads for more info
| Constructor and Description |
|---|
FailOnThreadViolationRepaintManager() |
FailOnThreadViolationRepaintManager(boolean completeCheck) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDirtyRegion(JComponent component,
int x,
int y,
int w,
int h) |
void |
addInvalidComponent(JComponent component) |
static FailOnThreadViolationRepaintManager |
install()
Creates a new
FailOnThreadViolationRepaintManager and sets it as the current repaint manager. |
addDirtyRegion, addDirtyRegion, currentManager, currentManager, getDirtyRegion, getDoubleBufferMaximumSize, getOffscreenBuffer, getVolatileOffscreenBuffer, isCompletelyDirty, isDoubleBufferingEnabled, markCompletelyClean, markCompletelyDirty, paintDirtyRegions, removeInvalidComponent, setCurrentManager, setDoubleBufferingEnabled, setDoubleBufferMaximumSize, toString, validateInvalidComponentspublic FailOnThreadViolationRepaintManager()
public FailOnThreadViolationRepaintManager(boolean completeCheck)
@Nonnull public static FailOnThreadViolationRepaintManager install()
Creates a new FailOnThreadViolationRepaintManager 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 addInvalidComponent(JComponent component)
addInvalidComponent in class RepaintManagerpublic void addDirtyRegion(JComponent component, int x, int y, int w, int h)
addDirtyRegion in class RepaintManagerCopyright © 2014 AssertJ. All rights reserved.