org.jdesktop.swingx
Class RepaintManagerX

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

public class RepaintManagerX
extends ForwardingRepaintManager

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.

Author:
zixle, rbair, Karl Schaefer

Constructor Summary
RepaintManagerX(RepaintManager delegate)
          Creates a new manager that forwards all calls to the delegate.
 
Method Summary
 void addDirtyRegion(JComponent c, int x, int y, int w, int h)
          
 
Methods inherited from class org.jdesktop.swingx.ForwardingRepaintManager
addDirtyRegion, addDirtyRegion, addInvalidComponent, getDelegateManager, getDirtyRegion, getDoubleBufferMaximumSize, getOffscreenBuffer, getVolatileOffscreenBuffer, isCompletelyDirty, isDoubleBufferingEnabled, markCompletelyClean, markCompletelyDirty, paintDirtyRegions, removeInvalidComponent, setDoubleBufferingEnabled, setDoubleBufferMaximumSize, toString, validateInvalidComponents
 
Methods inherited from class javax.swing.RepaintManager
currentManager, currentManager, setCurrentManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RepaintManagerX

public RepaintManagerX(RepaintManager delegate)
Creates a new manager that forwards all calls to the delegate.

Parameters:
delegate - the manager backing this RepaintManagerX
Throws:
NullPointerException - if delegate is null
Method Detail

addDirtyRegion

public void addDirtyRegion(JComponent c,
                           int x,
                           int y,
                           int w,
                           int h)

Overrides:
addDirtyRegion in class ForwardingRepaintManager


Copyright © 2012. All Rights Reserved.