|
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 RepaintManager
public void addInvalidComponent(JComponent invalidComponent)
addInvalidComponent
in class RepaintManager
public Rectangle getDirtyRegion(JComponent component)
getDirtyRegion
in class RepaintManager
public 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 RepaintManager
public boolean isCompletelyDirty(JComponent component)
isCompletelyDirty
in class RepaintManager
public boolean isDoubleBufferingEnabled()
isDoubleBufferingEnabled
in class RepaintManager
public void markCompletelyClean(JComponent component)
markCompletelyClean
in class RepaintManager
public void markCompletelyDirty(JComponent component)
markCompletelyDirty
in class RepaintManager
public void paintDirtyRegions()
paintDirtyRegions
in class RepaintManager
public void removeInvalidComponent(JComponent component)
removeInvalidComponent
in class RepaintManager
public void setDoubleBufferingEnabled(boolean flag)
setDoubleBufferingEnabled
in class RepaintManager
public void setDoubleBufferMaximumSize(Dimension d)
setDoubleBufferMaximumSize
in class RepaintManager
public String toString()
toString
in class RepaintManager
public void validateInvalidComponents()
validateInvalidComponents
in class RepaintManager
public final RepaintManager getDelegateManager()
|
swingx Version 2009-07-31 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |