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

java.lang.Object
  extended by javax.swing.RepaintManager
      extended by org.pbjar.jxlayer.repaint.WrappedRepaintManager
          extended by org.pbjar.jxlayer.plaf.ext.transform.TransformRPMFallBack

public class TransformRPMFallBack
extends WrappedRepaintManager

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.

A fall back class if the ForwardingRepaintManager cannot be instantiated because the SwingX packages are not on the class path.

See Also:
RepaintManagerProvider, RepaintManagerUtils, TransformRPMSwingX

Constructor Summary
TransformRPMFallBack(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.pbjar.jxlayer.repaint.WrappedRepaintManager
addDirtyRegion, addDirtyRegion, addInvalidComponent, getDelegateManager, getDirtyRegion, getDoubleBufferMaximumSize, getOffscreenBuffer, getVolatileOffscreenBuffer, isCompletelyDirty, isDoubleBufferingEnabled, markCompletelyClean, markCompletelyDirty, paintDirtyRegions, removeInvalidComponent, setDoubleBufferingEnabled, setDoubleBufferMaximumSize, validateInvalidComponents
 
Methods inherited from class javax.swing.RepaintManager
currentManager, currentManager, setCurrentManager, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransformRPMFallBack

public TransformRPMFallBack(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 WrappedRepaintManager