Package org.apache.batik.bridge
Class RepaintManager
java.lang.Object
org.apache.batik.bridge.RepaintManager
This class manages the rendering of a GVT tree.
- Version:
- $Id: RepaintManager.java 1804130 2017-08-04 14:41:11Z ssteiner $
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final int
(package private) static final int
protected ImageRenderer
The renderer used to repaint the buffer. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the renderer's offscreen, i.e., the current state as rendered by the associated renderer.void
setupRenderer
(AffineTransform u2d, boolean dbr, 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.updateRendering
(Collection areas) Updates the rendering buffer.
-
Field Details
-
COPY_OVERHEAD
static final int COPY_OVERHEAD- See Also:
-
COPY_LINE_OVERHEAD
static final int COPY_LINE_OVERHEAD- See Also:
-
renderer
The renderer used to repaint the buffer.
-
-
Constructor Details
-
RepaintManager
Creates a new repaint manager.
-
-
Method Details
-
updateRendering
Updates the rendering buffer.- Parameters:
areas
- The areas of interest in renderer space units.- Returns:
- the list of the rectangles to repaint.
- Throws:
InterruptedException
-
setupRenderer
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.- Parameters:
u2d
- The user to device transform.dbr
- Whether the double buffering should be used.aoi
- The area of interest in the renderer space units.width
- The offscreen buffer width.height
- The offscreen buffer width.
-
getOffScreen
Returns the renderer's offscreen, i.e., the current state as rendered by the associated renderer.
-