public class RepaintManager
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
protected ImageRenderer |
renderer |
The renderer used to repaint the buffer.
|
| Constructor | Description |
|---|---|
RepaintManager(ImageRenderer r) |
Creates a new repaint manager.
|
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
protected ImageRenderer renderer
public RepaintManager(ImageRenderer r)
public java.util.Collection updateRendering(java.util.Collection areas)
throws java.lang.InterruptedException
areas - The areas of interest in renderer space units.java.lang.InterruptedExceptionpublic void setupRenderer(java.awt.geom.AffineTransform u2d,
boolean dbr,
java.awt.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 java.awt.image.BufferedImage getOffScreen()
Copyright ? 2018 Apache Software Foundation. All Rights Reserved.