public class PDFPicture extends java.lang.Object implements TransferablePicture
This class is here to avoid adding a compile-time dependency of jvect-clipboard on IText.
We use IText 2.1.5 and not later versions, as we want to keep them under LGPL.
| Constructor and Description |
|---|
PDFPicture(float width,
float height)
Create a PDF document.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.datatransfer.Transferable |
buildTransferable()
Gets a transferable to transfer the picture.
|
void |
close() |
byte[] |
getByteArray() |
java.lang.String |
getComment() |
java.awt.Graphics2D |
getGraphics()
Returns a Graphics2D object to draw on.
|
void |
setComment(java.lang.String comment)
Sets a free text comment in the PDF.
|
public PDFPicture(float width,
float height)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic void setComment(java.lang.String comment)
comment - a comment added to the PDF header (if null or empty, no
comment is set)public java.lang.String getComment()
public void close()
public byte[] getByteArray()
public java.awt.Graphics2D getGraphics()
TransferablePicturegetGraphics in interface TransferablePicturepublic java.awt.datatransfer.Transferable buildTransferable()
TransferablePictureMust be called after drawing the picture and releasing the graphics2D.
buildTransferable in interface TransferablePicture