com.levigo.jadice.swing.tool
Class RenderParameters
java.lang.Object
com.levigo.jadice.document.render.BasicRenderParameters
com.levigo.jadice.swing.tool.RenderParameters
public class RenderParameters
- extends BasicRenderParameters
This is a parameter object class used for calls to Tool.render(RenderParameters,boolean)
.
By using a parameter object instead of immediate method parameters, we can keep the API stable
while allowing future extensibility.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RenderParameters
public RenderParameters(ViewComponent viewComponent,
Page page,
int pageIndex,
Rectangle renderedPageBounds,
Graphics2D g,
RenderControls renderControls)
- Parameters:
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 page
getViewComponent
public ViewComponent getViewComponent()
- Get the view component triggering the render cycle.
- Returns:
- the viewComponent
Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.