com.brackeen.javagamebook.graphics
Class NullRepaintManager

java.lang.Object
  extended by javax.swing.RepaintManager
      extended by com.brackeen.javagamebook.graphics.NullRepaintManager

public class NullRepaintManager
extends javax.swing.RepaintManager

The NullRepaintManager is a RepaintManager that doesn't do any repainting. Useful when all the rendering is done manually by the application.


Constructor Summary
NullRepaintManager()
           
 
Method Summary
 void addDirtyRegion(javax.swing.JComponent c, int x, int y, int w, int h)
           
 void addInvalidComponent(javax.swing.JComponent c)
           
static void install()
          Installs the NullRepaintManager.
 void markCompletelyDirty(javax.swing.JComponent c)
           
 void paintDirtyRegions()
           
 
Methods inherited from class javax.swing.RepaintManager
addDirtyRegion, addDirtyRegion, currentManager, currentManager, getDirtyRegion, getDoubleBufferMaximumSize, getOffscreenBuffer, getVolatileOffscreenBuffer, isCompletelyDirty, isDoubleBufferingEnabled, markCompletelyClean, 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

NullRepaintManager

public NullRepaintManager()
Method Detail

install

public static void install()
Installs the NullRepaintManager.


addInvalidComponent

public void addInvalidComponent(javax.swing.JComponent c)
Overrides:
addInvalidComponent in class javax.swing.RepaintManager

addDirtyRegion

public void addDirtyRegion(javax.swing.JComponent c,
                           int x,
                           int y,
                           int w,
                           int h)
Overrides:
addDirtyRegion in class javax.swing.RepaintManager

markCompletelyDirty

public void markCompletelyDirty(javax.swing.JComponent c)
Overrides:
markCompletelyDirty in class javax.swing.RepaintManager

paintDirtyRegions

public void paintDirtyRegions()
Overrides:
paintDirtyRegions in class javax.swing.RepaintManager