D
- screen information for set up. GraphicsConfiguration is
used for Swing. Display is used for SWT.G
- a graphics context usable for painting on the screen.
Graphics2D is used for Swing. GC is used for SWT.public interface JRendererTarget<D,G>
All of these methods are invoked within the context of the rendering thread
of the JRenderer
this implementation is controlling.
JRenderer
Modifier and Type | Method and Description |
---|---|
void |
render(G g,
int width,
int height)
Invoked once per rendering cycle to allow the implementation to paint onto
a graphics object that is either the screen or an off-screen image that
will subsequently painted onto the screen.
|
void |
renderSetup(D d)
Invoked once when the component being rendered is made visible to allow the
implementation to perform any necessary setup.
|
void |
renderShutdown()
Invoked when rendering is shutdown to allow the implementation to perform
any necessary cleanup.
|
void |
renderUpdate()
Invoked once per rendering cycle to allow the implementation to update its
state.
|
void renderSetup(D d)
The passed screen information allows the the creation of compatible images.
d
- describes the characteristics of the screen.void renderUpdate()
Invoked prior to render(Object, int, int)
.
void render(G g, int width, int height)
Invoked after renderUpdate()
.
g
- a graphics context to paint/draw with.width
- the width of the drawing area.height
- the height of the drawing area.void renderShutdown()