public abstract class AbstractRenderer extends Object
Graphics2D
. This class may be
used as a base class for renderers.Modifier and Type | Field and Description |
---|---|
protected com.levigo.jadice.document.internal.render.GraphicsContextRenderer |
graphicsContextRenderer |
Constructor and Description |
---|
AbstractRenderer() |
Modifier and Type | Method and Description |
---|---|
RenderControls |
getRenderControls()
Returns the render controls which will be applied to the rendering of content, in other words
when the
render(Graphics2D) method will be called. |
protected abstract void |
render(Graphics2D target)
Renders contents into given
Graphics2D . |
void |
setRenderControls(RenderControls renderControls)
Changes the render controls which will be applied a rendering takes place, i.e.
|
protected com.levigo.jadice.document.internal.render.GraphicsContextRenderer graphicsContextRenderer
protected abstract void render(Graphics2D target) throws JadiceException
Graphics2D
.target
- the Graphics2D
to paint to.JadiceException
- will be thrown if a problem occured while renderingpublic RenderControls getRenderControls()
render(Graphics2D)
method will be called. If the render controls are
null
, a default render context with zoom 100%, rotation 0 and deviceResolution
72dpi will be assumed.public void setRenderControls(RenderControls renderControls)
render(Graphics2D)
method will be called. If the render context is set to
null
, a default render context with zoom 100%, rotation 0 and deviceResolution
72dpi will be assumed.renderControls
- render controls to be applied while renderingCopyright © 2024 levigo holding gmbh. All rights reserved.