public class RepaintManager extends Object
Modifier and Type | Field and Description |
---|---|
protected ImageRenderer |
renderer
The renderer used to repaint the buffer.
|
Constructor and Description |
---|
RepaintManager(ImageRenderer r)
Creates a new repaint manager.
|
Modifier and Type | Method and Description |
---|---|
BufferedImage |
getOffScreen()
Returns 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.
|
Collection |
updateRendering(Collection areas)
Updates the rendering buffer.
|
protected ImageRenderer renderer
public RepaintManager(ImageRenderer r)
public Collection updateRendering(Collection areas) throws InterruptedException
areas
- The areas of interest in renderer space units.InterruptedException
public void setupRenderer(AffineTransform u2d, boolean dbr, Shape aoi, int width, int height)
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.public BufferedImage getOffScreen()
Copyright © 2000–2023 Apache Software Foundation. All rights reserved.