public class RenderParameters extends BasicRenderParameters
Tool.render(RenderParameters,boolean)
.
By using a parameter object instead of immediate method parameters, we can keep the API stable
while allowing future extensibility.graphics, page, pageIndex, renderControls, renderedPageBounds, transform
Constructor and Description |
---|
RenderParameters(ViewComponent viewComponent,
Page page,
int pageIndex,
Rectangle renderedPageBounds,
Graphics2D g,
RenderControls renderControls) |
Modifier and Type | Method and Description |
---|---|
ViewComponent |
getViewComponent()
Get the view component triggering the render cycle.
|
getGraphics, getPage, getPageIndex, getRenderControls, getRenderedPageBounds, getRenderSize, getTransform
public RenderParameters(ViewComponent viewComponent, Page page, int pageIndex, Rectangle renderedPageBounds, Graphics2D g, RenderControls renderControls)
viewComponent
- the view component which is currently being renderedpage
- the current pagepageIndex
- the index of the page currently being renderedrenderedPageBounds
- the bounds of the page currently being rendered in device unitsg
- the Graphics2D
context onto which to renderrenderControls
- render controls used to render the pagepublic ViewComponent getViewComponent()
Copyright © 2024 levigo holding gmbh. All rights reserved.