Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.batik.bridge
Class RepaintManager  view RepaintManager download RepaintManager.java

java.lang.Object
  extended byorg.apache.batik.bridge.RepaintManager

public class RepaintManager
extends java.lang.Object

This class manages the rendering of a GVT tree.

Version:
$Id: RepaintManager.java,v 1.18 2005/03/27 08:58:30 cam Exp $

Field Summary
(package private) static int COPY_LINE_OVERHEAD
           
(package private) static int COPY_OVERHEAD
           
protected  org.apache.batik.gvt.renderer.ImageRenderer renderer
          The renderer used to repaint the buffer.
 
Constructor Summary
RepaintManager(org.apache.batik.gvt.renderer.ImageRenderer r)
          Creates a new repaint manager.
 
Method Summary
 java.awt.image.BufferedImage getOffScreen()
          Returns the renderer's offscreen, i.e., the current state as rendered by the associated renderer.
 void setupRenderer(java.awt.geom.AffineTransform u2d, boolean dbr, java.awt.Shape aoi, int width, int height)
          Sets up the renderer so that it is ready to render for the new 'context' defined by the user to device transform, double buffering state, area of interest and width/height.
 java.util.Collection updateRendering(java.util.Collection areas)
          Updates the rendering buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPY_OVERHEAD

static final int COPY_OVERHEAD
See Also:
Constant Field Values

COPY_LINE_OVERHEAD

static final int COPY_LINE_OVERHEAD
See Also:
Constant Field Values

renderer

protected org.apache.batik.gvt.renderer.ImageRenderer renderer
The renderer used to repaint the buffer.

Constructor Detail

RepaintManager

public RepaintManager(org.apache.batik.gvt.renderer.ImageRenderer r)
Creates a new repaint manager.

Method Detail

updateRendering

public java.util.Collection updateRendering(java.util.Collection areas)
                                     throws java.lang.InterruptedException
Updates the rendering buffer.


setupRenderer

public void setupRenderer(java.awt.geom.AffineTransform u2d,
                          boolean dbr,
                          java.awt.Shape aoi,
                          int width,
                          int height)
Sets up the renderer so that it is ready to render for the new 'context' defined by the user to device transform, double buffering state, area of interest and width/height.


getOffScreen

public java.awt.image.BufferedImage getOffScreen()
Returns the renderer's offscreen, i.e., the current state as rendered by the associated renderer.