|
swingx Version 2009-07-31 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.RepaintManager
org.jdesktop.swingx.ForwardingRepaintManager
public class ForwardingRepaintManager
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);
| Constructor Summary | |
|---|---|
ForwardingRepaintManager(RepaintManager delegate)
Creates a new forwarding manager that forwards all calls to the delegate. |
|
| Method Summary | |
|---|---|
void |
addDirtyRegion(JComponent c,
int x,
int y,
int w,
int h)
|
void |
addInvalidComponent(JComponent invalidComponent)
|
RepaintManager |
getDelegateManager()
Gets the delegate repaint manager backing this forwarding repaint manager. |
Rectangle |
getDirtyRegion(JComponent component)
|
Dimension |
getDoubleBufferMaximumSize()
|
Image |
getOffscreenBuffer(Component c,
int proposedWidth,
int proposedHeight)
|
Image |
getVolatileOffscreenBuffer(Component c,
int proposedWidth,
int proposedHeight)
|
boolean |
isCompletelyDirty(JComponent component)
|
boolean |
isDoubleBufferingEnabled()
|
void |
markCompletelyClean(JComponent component)
|
void |
markCompletelyDirty(JComponent component)
|
void |
paintDirtyRegions()
|
void |
removeInvalidComponent(JComponent component)
|
void |
setDoubleBufferingEnabled(boolean flag)
|
void |
setDoubleBufferMaximumSize(Dimension d)
|
String |
toString()
|
void |
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 |
|---|
public ForwardingRepaintManager(RepaintManager delegate)
delegate - the manager backing this ForwardingRepaintManager
NullPointerException - if delegate is null| Method Detail |
|---|
public void addDirtyRegion(JComponent c,
int x,
int y,
int w,
int h)
addDirtyRegion in class RepaintManagerpublic void addInvalidComponent(JComponent invalidComponent)
addInvalidComponent in class RepaintManagerpublic Rectangle getDirtyRegion(JComponent component)
getDirtyRegion in class RepaintManagerpublic Dimension getDoubleBufferMaximumSize()
getDoubleBufferMaximumSize in class RepaintManager
public Image getOffscreenBuffer(Component c,
int proposedWidth,
int proposedHeight)
getOffscreenBuffer in class RepaintManager
public Image getVolatileOffscreenBuffer(Component c,
int proposedWidth,
int proposedHeight)
getVolatileOffscreenBuffer in class RepaintManagerpublic boolean isCompletelyDirty(JComponent component)
isCompletelyDirty in class RepaintManagerpublic boolean isDoubleBufferingEnabled()
isDoubleBufferingEnabled in class RepaintManagerpublic void markCompletelyClean(JComponent component)
markCompletelyClean in class RepaintManagerpublic void markCompletelyDirty(JComponent component)
markCompletelyDirty in class RepaintManagerpublic void paintDirtyRegions()
paintDirtyRegions in class RepaintManagerpublic void removeInvalidComponent(JComponent component)
removeInvalidComponent in class RepaintManagerpublic void setDoubleBufferingEnabled(boolean flag)
setDoubleBufferingEnabled in class RepaintManagerpublic void setDoubleBufferMaximumSize(Dimension d)
setDoubleBufferMaximumSize in class RepaintManagerpublic String toString()
toString in class RepaintManagerpublic void validateInvalidComponents()
validateInvalidComponents in class RepaintManagerpublic final RepaintManager getDelegateManager()
|
swingx Version 2009-07-31 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||