org.pbjar.jxlayer.plaf.ext.transform
Class TransformRPMSwingX

java.lang.Object
  extended by javax.swing.RepaintManager
      extended by org.jdesktop.swingx.ForwardingRepaintManager
          extended by org.pbjar.jxlayer.plaf.ext.transform.TransformRPMSwingX

public class TransformRPMSwingX
extends org.jdesktop.swingx.ForwardingRepaintManager

A specialized RepaintManager that checks for every JComponent that is being set dirty, if it has a JXLayer ancestor, equipped with a TransformUI. In that case, the transformed region on the JXLayer is also marked dirty.

If this class cannot be instantiated because the SwingX packages are not on the class path, use TransformRPMFallBack

Author:
Piet Blok
See Also:
TransformRPMFallBack, RepaintManagerProvider, RepaintManagerUtils

Constructor Summary
TransformRPMSwingX(RepaintManager delegate)
          Sole constructor.
 
Method Summary
 void addDirtyRegion(JComponent c, int x, int y, int w, int h)
          Delegates and then marks a JXLayer ancestor as dirty with the transformed rectangle.
 
Methods inherited from class org.jdesktop.swingx.ForwardingRepaintManager
addInvalidComponent, getDelegateManager, getDirtyRegion, getDoubleBufferMaximumSize, getOffscreenBuffer, getVolatileOffscreenBuffer, isCompletelyDirty, isDoubleBufferingEnabled, markCompletelyClean, markCompletelyDirty, paintDirtyRegions, removeInvalidComponent, setDoubleBufferingEnabled, setDoubleBufferMaximumSize, toString, validateInvalidComponents
 
Methods inherited from class javax.swing.RepaintManager
addDirtyRegion, addDirtyRegion, currentManager, currentManager, setCurrentManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransformRPMSwingX

public TransformRPMSwingX(RepaintManager delegate)
Sole constructor.

Parameters:
delegate - the delegate RepaintManager
Method Detail

addDirtyRegion

public void addDirtyRegion(JComponent c,
                           int x,
                           int y,
                           int w,
                           int h)
Delegates and then marks a JXLayer ancestor as dirty with the transformed rectangle.

Overrides:
addDirtyRegion in class org.jdesktop.swingx.ForwardingRepaintManager