|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pdfclown.tools.Renderer
public final class Renderer
Tool for rendering content contexts
.
Constructor Summary | |
---|---|
Renderer()
|
Method Summary | |
---|---|
boolean |
print(Pageable document)
Prints the specified document. |
boolean |
print(Pageable document,
boolean silent)
Prints the specified document. |
BufferedImage |
render(Contents contents,
Dimension2D size)
Renders the specified contents into an image context. |
BufferedImage |
render(Contents contents,
Dimension2D size,
Rectangle2D area)
Renders the specified contents into an image context. |
BufferedImage |
render(IContentContext contentContext,
Dimension2D size)
Renders the specified content context into an image context. |
BufferedImage |
render(IContentContext contentContext,
Dimension2D size,
Rectangle2D area)
Renders the specified content context into an image context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Renderer()
Method Detail |
---|
public boolean print(Pageable document) throws PrinterException
The document
can be either a Document
object
or a combination
of Page
objects.
document
- Document to print.
PrinterException
public boolean print(Pageable document, boolean silent) throws PrinterException
The document
can be either a Document
object
or a combination
of Page
objects.
document
- Document to print.silent
- Whether to avoid showing a print dialog.
PrinterException
public BufferedImage render(Contents contents, Dimension2D size)
contents
- Source contents.size
- Image size expressed in device-space units (that is typically pixels).
public BufferedImage render(IContentContext contentContext, Dimension2D size)
contentContext
- Source content context.size
- Image size expressed in device-space units (that is typically pixels).
public BufferedImage render(Contents contents, Dimension2D size, Rectangle2D area)
contents
- Source contents.size
- Image size expressed in device-space units (that is typically pixels).area
- Content area to render; null
corresponds to the entire content bounding box
.
public BufferedImage render(IContentContext contentContext, Dimension2D size, Rectangle2D area)
contentContext
- Source content context.size
- Image size expressed in device-space units (that is typically pixels).area
- Content area to render; null
corresponds to the entire content bounding box
.
|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |