API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. RepaintManager View Source
Author(s)
Arnaud Weber
Since
Version
1.70 10/17/06
Serial
Hierarchy
 Object
      RepaintManager
Implements
Subclasses
Description
public class RepaintManager
  This class manages repaint requests, allowing the number of repaints to be minimized, for example by collapsing multiple requests into a single repaint for members of a component tree.
See also:   
Constructors
public RepaintManager ()
  Create a new RepaintManager instance.
private RepaintManager (short bufferStrategyType)
Methods
Hide/Show inherited methods
public void addDirtyRegion (Applet applet, int x, int y, int w, int h)
  Adds applet to the list of Components that need to be repainted.
public void addDirtyRegion (JComponent c, int x, int y, int w, int h)
  Add a component in the list of components that should be refreshed.
public void addDirtyRegion (Window window, int x, int y, int w, int h)
  Adds window to the list of Components that need to be repainted.
publicsynchronized void addInvalidComponent (JComponent invalidComponent)
  Mark the component as in need of layout and queue a runnable for the event dispatching thread that will validate the components first isValidateRoot() ancestor.
pack-private void beginPaint ()
  Invoked prior to any paint/copyArea method calls.
pack-private void collectDirtyComponents (Map<Component, Rectangle> dirtyComponents, Component dirtyComponent, List<Component> roots)
pack-private void copyArea (JComponent c, Graphics g, int x, int y, int w, int h, int deltaX, int deltaY, boolean clip)
  Does a copy area on the specified region.
pack-privatestatic RepaintManager currentManager (sun.awt.AppContext appContext)
  Returns the RepaintManager for the specified AppContext.
publicstatic RepaintManager currentManager (Component c)
  Return the RepaintManager for the calling thread given a Component.
publicstatic RepaintManager currentManager (JComponent c)
  Return the RepaintManager for the calling thread given a JComponent.
pack-private void doubleBufferingChanged (JRootPane rootPane)
  Invoked when the doubleBuffered or useTrueDoubleBuffering properties of a JRootPane change.
pack-private void endPaint ()
Invoked after beginPaint has been invoked.
public Rectangle getDirtyRegion (JComponent aComponent)
  Return the current dirty region for a component.
public Dimension getDoubleBufferMaximumSize ()
  Returns the maximum double buffer size.
public Image getOffscreenBuffer (Component c, int proposedWidth, int proposedHeight)
  Return the offscreen buffer that should be used as a double buffer with the component c.
public Image getVolatileOffscreenBuffer (Component c, int proposedWidth, int proposedHeight)
  Return a volatile offscreen buffer that should be used as a double buffer with the specified component c.
public boolean isCompletelyDirty (JComponent aComponent)
  Convenience method that returns true if aComponent will be completely painted during the next paintDirtyRegions().
public boolean isDoubleBufferingEnabled ()
  Returns true if this RepaintManager is double buffered.
public void markCompletelyClean (JComponent aComponent)
  Mark a component completely clean.
public void markCompletelyDirty (JComponent aComponent)
  Mark a component completely dirty.
pack-private void nativeAddDirtyRegion (sun.awt.AppContext appContext, Container c, int x, int y, int w, int h)
pack-private void nativeQueueSurfaceDataRunnable (sun.awt.AppContext appContext, Component c, Runnable r)
pack-private void paint (JComponent paintingComponent, JComponent bufferComponent, Graphics g, int x, int y, int w, int h)
  Paints a region of a component
public void paintDirtyRegions ()
  Paint all of the components that have been marked dirty.
publicsynchronized void removeInvalidComponent (JComponent component)
  Remove a component from the list of invalid components.
pack-private void resetDoubleBuffer ()
  This resets the double buffer.
pack-private void resetVolatileDoubleBuffer (GraphicsConfiguration gc)
This resets the volatile double buffer.
pack-private void scheduleHeavyWeightPaints ()
pack-private void seqPaintDirtyRegions ()
  This is invoked from SystemEventQueueUtilities.
publicstatic void setCurrentManager (RepaintManager aRepaintManager)
  Set the RepaintManager that should be used for the calling thread.
public void setDoubleBufferingEnabled (boolean aFlag)
  Enables or disables double buffering in this RepaintManager.
public void setDoubleBufferMaximumSize (Dimension d)
Set the maximum double buffer size.
pack-private void setPaintManager (PaintManager paintManager)
  Sets the PaintManager that is used to handle all double buffered painting.
pack-private boolean show (Container c, int x, int y, int w, int h)
  If possible this will show a previously rendered portion of a Component.
publicsynchronized String toString ()
  Returns a string that displays and identifies this object's properties.
pack-private boolean useVolatileDoubleBuffer ()
Returns true if we should use the Image returned from getVolatileOffscreenBuffer to do double buffering.
public void validateInvalidComponents ()
  Validate all of the components that have been marked invalid.
Fields
Hide/Show inherited fields
pack-private boolean doubleBufferingEnabled
pack-privatefinalstatic boolean HANDLE_TOP_LEVEL_PAINT
Whether or not the RepaintManager should handle paint requests for top levels.
pack-private DoubleBufferInfo standardDoubleBuffer
pack-private Rectangle tmp
pack-privatestatic boolean volatileImageBufferEnabled
Nested Classes
  RepaintManager.PaintManager
PaintManager is used to handle all double buffered painting for Swing.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar