Package org.jdesktop.swingx
Class ForwardingRepaintManager
java.lang.Object
javax.swing.RepaintManager
org.jdesktop.swingx.ForwardingRepaintManager
- Direct Known Subclasses:
RepaintManagerX
A
RepaintManager that is designed to forward all calls to a contained
delegate. This class is designed for extension, such that subclasses should
override method as appropriate and allow the original repaint manager to
handle the rest of the work.
Install a forwarding repaint manager:
RepaintManager manager = RepaintManager.currentManager(this); RepaintManager frm = new ForwardingRepaintManager(manager); RepaintManager.setCurrentManager(frm);
- Author:
- Karl George Schaefer, pietblok (original facade/delegate idea)
-
Constructor Summary
ConstructorsConstructorDescriptionForwardingRepaintManager(RepaintManager delegate) Creates a new forwarding manager that forwards all calls to the delegate. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDirtyRegion(Applet applet, int x, int y, int w, int h) Deprecated, for removal: This API element is subject to removal in a future version.voidaddDirtyRegion(Window window, int x, int y, int w, int h) voidaddDirtyRegion(JComponent c, int x, int y, int w, int h) voidaddInvalidComponent(JComponent invalidComponent) final RepaintManagerGets the delegate repaint manager backing this forwarding repaint manager.getDirtyRegion(JComponent component) getOffscreenBuffer(Component c, int proposedWidth, int proposedHeight) getVolatileOffscreenBuffer(Component c, int proposedWidth, int proposedHeight) booleanisCompletelyDirty(JComponent component) booleanvoidmarkCompletelyClean(JComponent component) voidmarkCompletelyDirty(JComponent component) voidvoidremoveInvalidComponent(JComponent component) voidsetDoubleBufferingEnabled(boolean flag) voidtoString()voidMethods inherited from class javax.swing.RepaintManager
currentManager, currentManager, setCurrentManager
-
Constructor Details
-
ForwardingRepaintManager
Creates a new forwarding manager that forwards all calls to the delegate.- Parameters:
delegate- the manager backing thisForwardingRepaintManager- Throws:
NullPointerException- ifdelegateisnull
-
-
Method Details
-
addDirtyRegion
@Deprecated(since="9", forRemoval=true) public void addDirtyRegion(Applet applet, int x, int y, int w, int h) Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
addDirtyRegionin classRepaintManager
-
addDirtyRegion
- Overrides:
addDirtyRegionin classRepaintManager
-
addDirtyRegion
- Overrides:
addDirtyRegionin classRepaintManager
-
addInvalidComponent
- Overrides:
addInvalidComponentin classRepaintManager
-
getDirtyRegion
- Overrides:
getDirtyRegionin classRepaintManager
-
getDoubleBufferMaximumSize
- Overrides:
getDoubleBufferMaximumSizein classRepaintManager
-
getOffscreenBuffer
- Overrides:
getOffscreenBufferin classRepaintManager
-
getVolatileOffscreenBuffer
- Overrides:
getVolatileOffscreenBufferin classRepaintManager
-
isCompletelyDirty
- Overrides:
isCompletelyDirtyin classRepaintManager
-
isDoubleBufferingEnabled
public boolean isDoubleBufferingEnabled()- Overrides:
isDoubleBufferingEnabledin classRepaintManager
-
markCompletelyClean
- Overrides:
markCompletelyCleanin classRepaintManager
-
markCompletelyDirty
- Overrides:
markCompletelyDirtyin classRepaintManager
-
paintDirtyRegions
public void paintDirtyRegions()- Overrides:
paintDirtyRegionsin classRepaintManager
-
removeInvalidComponent
- Overrides:
removeInvalidComponentin classRepaintManager
-
setDoubleBufferingEnabled
public void setDoubleBufferingEnabled(boolean flag) - Overrides:
setDoubleBufferingEnabledin classRepaintManager
-
setDoubleBufferMaximumSize
- Overrides:
setDoubleBufferMaximumSizein classRepaintManager
-
toString
- Overrides:
toStringin classRepaintManager
-
validateInvalidComponents
public void validateInvalidComponents()- Overrides:
validateInvalidComponentsin classRepaintManager
-
getDelegateManager
Gets the delegate repaint manager backing this forwarding repaint manager.- Returns:
- the delegate for this forwarding manager
-