public interface RenderTarget<R extends RenderResult>
A renderer will render source data into a RenderResult
and
provide this to the RenderTarget
.
See BufferedImageOverlayRenderer
, which is both a RenderTarget
and
an OverlayRenderer
that draws the RenderResult
.
Modifier and Type | Method and Description |
---|---|
R |
createRenderResult()
Returns a new
RenderResult . |
int |
getHeight()
Get the current canvas height.
|
R |
getReusableRenderResult()
Returns a
RenderResult for rendering to. |
int |
getWidth()
Get the current canvas width.
|
void |
setRenderResult(R renderResult)
Set the
RenderResult that is to be drawn on the canvas. |
R getReusableRenderResult()
RenderResult
for rendering to.
This may be a new RenderResult
or a previously set RenderResult
that is no longer needed for display.
Note that consecutive getReusableRenderResult()
calls without intermediate
setRenderResult()
may return the same RenderResult
.R createRenderResult()
RenderResult
.void setRenderResult(R renderResult)
RenderResult
that is to be drawn on the canvas.int getWidth()
int getHeight()
Copyright © 2015–2021 Fiji. All rights reserved.