fr.lip6.sma.simulacion.test
Class ThreadCheckingRepaintManager

java.lang.Object
  extended by javax.swing.RepaintManager
      extended by fr.lip6.sma.simulacion.test.ThreadCheckingRepaintManager

public final class ThreadCheckingRepaintManager
extends RepaintManager

Class for a repaint manager that checks that Swing components are only modified within the Swing thread. From: http://www.clientjava.com/blog/2004/08/20/1093059428000.html

Version:
$Revision: 4 $
Author:
Paul Guyot
See Also:
"aucun test défini."

Constructor Summary
private ThreadCheckingRepaintManager()
          Default constructor.
 
Method Summary
 void addDirtyRegion(JComponent inComponent, int inXCoord, int inYCoord, int inWidth, int inHeight)
          
 void addInvalidComponent(JComponent inComponent)
          
private static void checkThread()
          Check we're in the Swing thread and dump the stack otherwise.
static void install()
          Install the repaint manager.
 
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

ThreadCheckingRepaintManager

private ThreadCheckingRepaintManager()
Default constructor.

Method Detail

addInvalidComponent

public void addInvalidComponent(JComponent inComponent)

Overrides:
addInvalidComponent in class RepaintManager

addDirtyRegion

public void addDirtyRegion(JComponent inComponent,
                           int inXCoord,
                           int inYCoord,
                           int inWidth,
                           int inHeight)

Overrides:
addDirtyRegion in class RepaintManager

checkThread

private static void checkThread()
Check we're in the Swing thread and dump the stack otherwise.


install

public static void install()
Install the repaint manager.