All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.java.swing.JDirtyRegionManager
java.lang.Object
|
+----com.sun.java.swing.JDirtyRegionManager
- public class JDirtyRegionManager
- extends Object
- implements ActionListener
-
managers
-
-
JDirtyRegionManager()
- Create a new JDirtyRegionManager instance.
-
actionPerformed(ActionEvent)
-
-
addDirtyRegion(JComponent, int, int, int, int)
- Add a component in the list of component that should be refreshed.
-
defaultManager()
- Return the JDirtyRegionManager for the calling thread.
-
getDirtyRegion(JComponent)
- Return the current dirty region for a component.
-
isCompletelyDirty(JComponent)
- Convenience that returns true if aComponent will be completely
painted during the next paintDirtyRegions().
-
markCompletelyClean(JComponent)
- Mark a component completely clean.
-
markCompletelyDirty(JComponent)
- Mark a component completely dirty.
-
paintDirtyRegions()
- Cause all the known dirty regions to be painted
-
toString()
-
managers
public static Hashtable managers
JDirtyRegionManager
public JDirtyRegionManager()
- Create a new JDirtyRegionManager instance. You rarely call this constructor.
directly. To get the default dirtyRegionManager, use
DirtyRegionManager.defaultManager()
defaultManager
public static JDirtyRegionManager defaultManager()
- Return the JDirtyRegionManager for the calling thread.
This method will maintain one dirtyRegionManager per
thread group.
addDirtyRegion
public synchronized void addDirtyRegion(JComponent aComponent,
int x,
int y,
int w,
int h)
- Add a component in the list of component that should be refreshed.
If aComponent already has some dirty region, the rectangle (x,y,w,h) will be
added to the region that should be redrawn.
getDirtyRegion
public Rectangle getDirtyRegion(JComponent aComponent)
- Return the current dirty region for a component.
Return an empty rectangle if the component is not
dirty.
markCompletelyDirty
public void markCompletelyDirty(JComponent aComponent)
- Mark a component completely dirty. aComponent will be
completely painted during the next paintDirtyRegions() call.
markCompletelyClean
public void markCompletelyClean(JComponent aComponent)
- Mark a component completely clean. aComponent will not
get painted during the next paintDirtyRegions() call
isCompletelyDirty
public boolean isCompletelyDirty(JComponent aComponent)
- Convenience that returns true if aComponent will be completely
painted during the next paintDirtyRegions(). If computing dirty regions is
expensive for your component, use this method and avoid computing dirty region
if it return true.
actionPerformed
public void actionPerformed(ActionEvent e)
paintDirtyRegions
public void paintDirtyRegions()
- Cause all the known dirty regions to be painted
toString
public synchronized String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index