Package org.jdesktop.swingx
Class RepaintManagerX
java.lang.Object
javax.swing.RepaintManager
org.jdesktop.swingx.ForwardingRepaintManager
org.jdesktop.swingx.RepaintManagerX
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDirtyRegion(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 org.jdesktop.swingx.ForwardingRepaintManager
addDirtyRegion, addDirtyRegion, addInvalidComponent, getDelegateManager, getDirtyRegion, getDoubleBufferMaximumSize, getOffscreenBuffer, getVolatileOffscreenBuffer, isCompletelyDirty, isDoubleBufferingEnabled, markCompletelyClean, markCompletelyDirty, paintDirtyRegions, removeInvalidComponent, setDoubleBufferingEnabled, setDoubleBufferMaximumSize, toString, validateInvalidComponentsMethods inherited from class javax.swing.RepaintManager
currentManager, currentManager, setCurrentManager
-
Constructor Details
-
RepaintManagerX
- Parameters:
delegate-
-
-
Method Details
-
addDirtyRegion
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:
addDirtyRegionin classForwardingRepaintManager- Parameters:
c- Component to repaint, null results in nothing happening.x- X coordinate of the region to repainty- Y coordinate of the region to repaintw- Width of the region to repainth- Height of the region to repaint- See Also:
-