org.jdesktop.swingx
Class RepaintManagerX

java.lang.Object
  extended by javax.swing.RepaintManager
      extended by org.jdesktop.swingx.RepaintManagerX

public class RepaintManagerX
extends RepaintManager

An implementation of RepaintManager which adds support for transparency in JXPanels. JXPanel (which supports translucency) will replace the current RepaintManager with an instance of RepaintManagerX unless the current RepaintManager is tagged by the TranslucentRepaintManager annotation.


Constructor Summary
RepaintManagerX()
           
 
Method Summary
 void addDirtyRegion(JComponent c, int x, int y, int w, int h)
          Add a component in the list of components that should be refreshed.
 
Methods inherited from class javax.swing.RepaintManager
addInvalidComponent, 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

RepaintManagerX

public RepaintManagerX()
Method Detail

addDirtyRegion

public void addDirtyRegion(JComponent c,
                           int x,
                           int y,
                           int w,
                           int h)
Description copied from class: javax.swing.RepaintManager
Add a component in the list of components that should be refreshed. If c already has a dirty region, the rectangle (x,y,w,h) will be unioned with the region that should be redrawn.

Overrides:
addDirtyRegion in class RepaintManager
See Also:
JComponent.repaint(long, int, int, int, int)