public final class ThreadViolationDetectionRepaintManager extends RepaintManager
Code originates from the SwingHelper project, for more information see: "https://swinghelper.dev.java.net/".
Constructor and Description |
---|
ThreadViolationDetectionRepaintManager()
Creates a new ThreadViolationDetectionRepaintManager instance.
|
ThreadViolationDetectionRepaintManager(boolean aCompleteCheck)
Creates a new ThreadViolationDetectionRepaintManager instance.
|
Modifier and Type | Method and Description |
---|---|
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. |
addDirtyRegion, addDirtyRegion, currentManager, currentManager, getDirtyRegion, getDoubleBufferMaximumSize, getOffscreenBuffer, getVolatileOffscreenBuffer, isCompletelyDirty, isDoubleBufferingEnabled, markCompletelyClean, markCompletelyDirty, paintDirtyRegions, removeInvalidComponent, setCurrentManager, setDoubleBufferingEnabled, setDoubleBufferMaximumSize, toString, validateInvalidComponents
public ThreadViolationDetectionRepaintManager()
public ThreadViolationDetectionRepaintManager(boolean aCompleteCheck)
aCompleteCheck
- true
to perform a full check on all stack frames,
false
to only at the first few.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)
Copyright © 2015 L'Xtreme IT consultancy. All rights reserved.