|
||||||||||
| 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(javax.swing.RepaintManager delegate)
Creates a new forwarding manager that forwards all calls to the delegate. |
|
| Method Summary | |
|---|---|
void |
addDirtyRegion(java.applet.Applet applet,
int x,
int y,
int w,
int h)
|
void |
addDirtyRegion(javax.swing.JComponent c,
int x,
int y,
int w,
int h)
|
void |
addDirtyRegion(java.awt.Window window,
int x,
int y,
int w,
int h)
|
void |
addInvalidComponent(javax.swing.JComponent invalidComponent)
|
javax.swing.RepaintManager |
getDelegateManager()
Gets the delegate repaint manager backing this forwarding repaint manager. |
java.awt.Rectangle |
getDirtyRegion(javax.swing.JComponent component)
|
java.awt.Dimension |
getDoubleBufferMaximumSize()
|
java.awt.Image |
getOffscreenBuffer(java.awt.Component c,
int proposedWidth,
int proposedHeight)
|
java.awt.Image |
getVolatileOffscreenBuffer(java.awt.Component c,
int proposedWidth,
int proposedHeight)
|
boolean |
isCompletelyDirty(javax.swing.JComponent component)
|
boolean |
isDoubleBufferingEnabled()
|
void |
markCompletelyClean(javax.swing.JComponent component)
|
void |
markCompletelyDirty(javax.swing.JComponent component)
|
void |
paintDirtyRegions()
|
void |
removeInvalidComponent(javax.swing.JComponent component)
|
void |
setDoubleBufferingEnabled(boolean flag)
|
void |
setDoubleBufferMaximumSize(java.awt.Dimension d)
|
java.lang.String |
toString()
|
void |
validateInvalidComponents()
|
| Methods inherited from class javax.swing.RepaintManager |
|---|
currentManager, currentManager, setCurrentManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ForwardingRepaintManager(javax.swing.RepaintManager delegate)
delegate - the manager backing this ForwardingRepaintManager
java.lang.NullPointerException - if delegate is null| Method Detail |
|---|
public void addDirtyRegion(java.applet.Applet applet,
int x,
int y,
int w,
int h)
addDirtyRegion in class javax.swing.RepaintManager
public void addDirtyRegion(javax.swing.JComponent c,
int x,
int y,
int w,
int h)
addDirtyRegion in class javax.swing.RepaintManager
public void addDirtyRegion(java.awt.Window window,
int x,
int y,
int w,
int h)
addDirtyRegion in class javax.swing.RepaintManagerpublic void addInvalidComponent(javax.swing.JComponent invalidComponent)
addInvalidComponent in class javax.swing.RepaintManagerpublic java.awt.Rectangle getDirtyRegion(javax.swing.JComponent component)
getDirtyRegion in class javax.swing.RepaintManagerpublic java.awt.Dimension getDoubleBufferMaximumSize()
getDoubleBufferMaximumSize in class javax.swing.RepaintManager
public java.awt.Image getOffscreenBuffer(java.awt.Component c,
int proposedWidth,
int proposedHeight)
getOffscreenBuffer in class javax.swing.RepaintManager
public java.awt.Image getVolatileOffscreenBuffer(java.awt.Component c,
int proposedWidth,
int proposedHeight)
getVolatileOffscreenBuffer in class javax.swing.RepaintManagerpublic boolean isCompletelyDirty(javax.swing.JComponent component)
isCompletelyDirty in class javax.swing.RepaintManagerpublic boolean isDoubleBufferingEnabled()
isDoubleBufferingEnabled in class javax.swing.RepaintManagerpublic void markCompletelyClean(javax.swing.JComponent component)
markCompletelyClean in class javax.swing.RepaintManagerpublic void markCompletelyDirty(javax.swing.JComponent component)
markCompletelyDirty in class javax.swing.RepaintManagerpublic void paintDirtyRegions()
paintDirtyRegions in class javax.swing.RepaintManagerpublic void removeInvalidComponent(javax.swing.JComponent component)
removeInvalidComponent in class javax.swing.RepaintManagerpublic void setDoubleBufferingEnabled(boolean flag)
setDoubleBufferingEnabled in class javax.swing.RepaintManagerpublic void setDoubleBufferMaximumSize(java.awt.Dimension d)
setDoubleBufferMaximumSize in class javax.swing.RepaintManagerpublic java.lang.String toString()
toString in class javax.swing.RepaintManagerpublic void validateInvalidComponents()
validateInvalidComponents in class javax.swing.RepaintManagerpublic final javax.swing.RepaintManager getDelegateManager()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||