org.tbee.swing
Class ThreadCheckingRepaintManager

java.lang.Object
  extended by javax.swing.RepaintManager
      extended by org.tbee.swing.ThreadCheckingRepaintManager

public class ThreadCheckingRepaintManager
extends RepaintManager

Check to see if a swing action is done in a none swing thread. Use "install" to hook up.

Version:
$Revision: 1.6 $

Field Summary
static String SOURCECODE_VERSION
          Standard variable for determining version of a class file.
 
Constructor Summary
ThreadCheckingRepaintManager()
           
ThreadCheckingRepaintManager(boolean checkOnlyIfShowing)
           
 
Method Summary
 void addDirtyRegion(JComponent jComponent, int i, int i1, int i2, int i3)
           
 void addInvalidComponent(JComponent jComponent)
           
static void install()
          assume checkOnlyIfShowing=true
static void install(boolean checkOnlyIfShowing)
           
static void main(String[] args)
           
 
Methods inherited from class javax.swing.RepaintManager
addDirtyRegion, addDirtyRegion, 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
 

Field Detail

SOURCECODE_VERSION

public static final String SOURCECODE_VERSION
Standard variable for determining version of a class file.

See Also:
Constant Field Values
Constructor Detail

ThreadCheckingRepaintManager

public ThreadCheckingRepaintManager()

ThreadCheckingRepaintManager

public ThreadCheckingRepaintManager(boolean checkOnlyIfShowing)
Method Detail

install

public static void install()
assume checkOnlyIfShowing=true


install

public static void install(boolean checkOnlyIfShowing)
Parameters:
checkOnlyIfShowing -

addInvalidComponent

public void addInvalidComponent(JComponent jComponent)
Overrides:
addInvalidComponent in class RepaintManager

addDirtyRegion

public void addDirtyRegion(JComponent jComponent,
                           int i,
                           int i1,
                           int i2,
                           int i3)
Overrides:
addDirtyRegion in class RepaintManager

main

public static void main(String[] args)


Copyright © 2012 KnowledgePlaza. All Rights Reserved.