public abstract class IlvAbstractRepaintManager extends RepaintManager
RepaintManager whose behavior can be
customized in subclasses.| Modifier | Constructor and Description |
|---|---|
protected |
IlvAbstractRepaintManager()
Constructs the repaint manager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDirtyRegion(JComponent c,
int x,
int y,
int w,
int h)
If the component c is showing: This method must remember that the specified
rectangle needs to be repainted.
|
void |
addInvalidComponent(JComponent invalidComponent)
This method initiates a delayed re-validation of the first ancestor of the
invalidComponent that satisfies the isValidateRoot() or the
invalidComponent itself if there is no such ancestor.
|
protected void |
addRectangle(LinkedList<Rectangle> list,
int x,
int y,
int w,
int h)
Adds a rectangle.
|
protected JComponent |
getDirtyComponentParent(JComponent comp)
Returns the parent component of
comp if the parent component
of comp is an instance of JComponent. |
Rectangle |
getDirtyRegion(JComponent c)
This method must return the smallest rectangle that contains the dirty
region of the given component c.
|
boolean |
isCompletelyDirty(JComponent c)
This method returns true when it can be quickly determined that the dirty
region of the given component c contains the bounds of c.
|
protected boolean |
isTopLevelComponent(Component comp)
Determine if the specified component is a top level component.
|
void |
markCompletelyClean(JComponent c)
This method removes all rectangles from the dirty region of the given
component c.
|
protected void |
paintDirtyComponent(JComponent comp,
Rectangle rect)
This method arranges for component to paint its contents,limited to
designated rectangle.
|
void |
paintDirtyRegions()
This method arranges for all dirty regions to be repainted on the screen,
without using a separate thread, and removes all rectangles from all dirty
regions.
|
void |
removeInvalidComponent(JComponent component)
This method withdraws the request that component is in need of being
revalidated.
|
void |
validateInvalidComponents()
This method calls validate() on all components remembered through
addInvalidComponent.
|
addDirtyRegion, addDirtyRegion, currentManager, currentManager, getDoubleBufferMaximumSize, getOffscreenBuffer, getVolatileOffscreenBuffer, isDoubleBufferingEnabled, markCompletelyDirty, setCurrentManager, setDoubleBufferingEnabled, setDoubleBufferMaximumSize, toStringprotected IlvAbstractRepaintManager()
protected void addRectangle(LinkedList<Rectangle> list, int x, int y, int w, int h)
protected boolean isTopLevelComponent(Component comp)
comp - The component to check.java.awt.Window or java.awt.Applet, false
otherwise.protected JComponent getDirtyComponentParent(JComponent comp)
comp if the parent component
of comp is an instance of JComponent.comp - The component of the parent to check.comp is an instance
of JComponent, null otherwise.protected void paintDirtyComponent(JComponent comp, Rectangle rect)
comp - Component that needs to be painted.rect - Designated Rectangle.public void addInvalidComponent(JComponent invalidComponent)
addInvalidComponent in class RepaintManagerinvalidComponent - Invalid Component.public void removeInvalidComponent(JComponent component)
removeInvalidComponent in class RepaintManagercomponent - Component that needs to be withdrawn to revalidation
queue.public void validateInvalidComponents()
validateInvalidComponents in class RepaintManagerpublic void addDirtyRegion(JComponent c, int x, int y, int w, int h)
addDirtyRegion in class RepaintManagerc - Swing Component.x - X co-ordinate of a Rectangle.y - Y co-ordinate of a Rectangle.w - Width of a Rectangle.h - Height of a Rectangle.public Rectangle getDirtyRegion(JComponent c)
getDirtyRegion in class RepaintManagerc - Swing Component.public void markCompletelyClean(JComponent c)
markCompletelyClean in class RepaintManagerc - Swing Component.public boolean isCompletelyDirty(JComponent c)
isCompletelyDirty in class RepaintManagerc - Swing Component.public void paintDirtyRegions()
paintDirtyRegions in class RepaintManager© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.