Home » openjdk-7 » javax » swing » [javadoc | source]
static class: RepaintManager.PaintManager [javadoc | source]

Direct Known Subclasses:

PaintManager is used to handle all double buffered painting for Swing. Subclasses should call back into the JComponent method paintToOffscreen to handle the actual painting.
Field Summary
protected  RepaintManager repaintManager    RepaintManager the PaintManager has been installed on. 
 boolean isRepaintingRoot     
Method from javax.swing.RepaintManager$PaintManager Summary:
beginPaint,   copyArea,   dispose,   doubleBufferingChanged,   endPaint,   isRepaintingRoot,   paint,   paintDoubleBuffered,   repaintRoot,   show
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.RepaintManager$PaintManager Detail:
 public  void beginPaint() 
    Invoked prior to any calls to paint or copyArea.
 public  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.
 protected  void dispose() 
    Cleans up any state. After invoked the PaintManager will no longer be used anymore.
 public  void doubleBufferingChanged(JRootPane rootPane) 
    Invoked when the doubleBuffered or useTrueDoubleBuffering properties of a JRootPane change. This may come in on any thread.
 public  void endPaint() 
    Invoked to indicate painting has been completed.
 protected boolean isRepaintingRoot() 
    Returns true if the component being painted is the root component that was previously passed to repaintRoot.
 public boolean paint(JComponent paintingComponent,
    JComponent bufferComponent,
    Graphics g,
    int x,
    int y,
    int w,
    int h) 
    Paints a region of a component
 protected  void paintDoubleBuffered(JComponent c,
    Image image,
    Graphics g,
    int clipX,
    int clipY,
    int clipW,
    int clipH) 
    Paints a portion of a component to an offscreen buffer.
 protected  void repaintRoot(JComponent root) 
    Schedules a repaint for the specified component. This differs from root.repaint in that if the RepaintManager is currently processing paint requests it'll process this request with the current set of requests.
 public boolean show(Container c,
    int x,
    int y,
    int w,
    int h) 
    Shows a region of a previously rendered component. This will return true if successful, false otherwise. The default implementation returns false.