java.lang.Object
org.sejda.sambox.rendering.PageDrawerParameters
Parameters for a PageDrawer. This class ensures allows PDFRenderer and PageDrawer to share private implementation
data in a future-proof manner, while still allowing end-users to create their own subclasses of PageDrawer.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RenderDestinationprivate final PDPageprivate final PDFRendererprivate final RenderingHintsprivate final boolean -
Constructor Summary
ConstructorsConstructorDescriptionPageDrawerParameters(PDFRenderer renderer, PDPage page, boolean subsamplingAllowed, RenderDestination destination, RenderingHints renderingHints) Package-private constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetPage()Returns the page.(package private) PDFRendererReturns the renderer.booleanReturns whether to allow subsampling of images.
-
Field Details
-
renderer
-
page
-
subsamplingAllowed
private final boolean subsamplingAllowed -
destination
-
renderingHints
-
-
Constructor Details
-
PageDrawerParameters
PageDrawerParameters(PDFRenderer renderer, PDPage page, boolean subsamplingAllowed, RenderDestination destination, RenderingHints renderingHints) Package-private constructor.
-
-
Method Details
-
getPage
Returns the page. -
getRenderer
PDFRenderer getRenderer()Returns the renderer. -
isSubsamplingAllowed
public boolean isSubsamplingAllowed()Returns whether to allow subsampling of images. -
getDestination
- Returns:
- the destination
-
getRenderingHints
- Returns:
- the rendering hints.
-