|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.foray.pdf.object.PDFObject
org.foray.pdf.object.PDFStream
org.foray.pdf.object.PDFXObject
org.foray.pdf.object.PDFXForm
org.foray.pdf.object.PDFXFormEps
public class PDFXFormEps
A PDF "Form" XObject containing an EPS graphic.
| Field Summary |
|---|
| Fields inherited from class org.foray.pdf.object.PDFObject |
|---|
EOL, MSG_EOL, XREF_EOL |
| Constructor Summary | |
|---|---|
PDFXFormEps(PDFDocument doc,
org.axsl.graphic.EpsGraphic graphic)
Constructor. |
|
| Method Summary | |
|---|---|
protected org.axsl.ps.PsBoundingBox |
getBoundingBox()
Returns the bounding box dimensions, in form space, for this graphic. |
org.axsl.graphic.EpsGraphic |
getGraphic()
Return the encapsulated graphic. |
float |
getHorizontalScaling(Rectangle2D.Float contentRectangle)
Returns the horizontal scaling factor that should be used for a specific "Do" for a specific content rectangle. |
protected byte[] |
getPdfContent()
Converts the graphic content to PDF content. |
protected AffineTransform |
getUserSpaceTransform()
Return the transformation that should be used to convert this form from form space to user space. |
float |
getVerticalScaling(Rectangle2D.Float contentRectangle)
Returns the vertical scaling factor that should be used for a specific "Do" for a specific content rectangle. |
protected String |
specialXFormDict()
Returns any special entries that should be added to the XForm dictionary. |
| Methods inherited from class org.foray.pdf.object.PDFXForm |
|---|
specialXObjectDictEntries, xObjectContent, xObjectSubtype |
| Methods inherited from class org.foray.pdf.object.PDFXObject |
|---|
addStreamFilters, finalizeStreamContent, getXObjectName, makeXObject, specialStreamDictEntries |
| Methods inherited from class org.foray.pdf.object.PDFStream |
|---|
add, addDefaultFilters, addEncryption, addFilter, addFilter, applyFilters, getDataLength, getOutputStream, output, outputStreamData, setData, setOutputStream, toPDF |
| Methods inherited from class org.foray.pdf.object.PDFObject |
|---|
bufferToByteArray, byteArrayToStream, getCharsPerLine, getGeneration, getLogger, getNumber, getPDFDocument, pdfID, pdfReference, setNumber, stringToByteArray |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PDFXFormEps(PDFDocument doc,
org.axsl.graphic.EpsGraphic graphic)
throws org.axsl.graphic.GraphicException
doc - The parent PDF document.graphic - The form to be encapsulated.
org.axsl.graphic.GraphicException - For errors getting the appropriate filter.| Method Detail |
|---|
protected byte[] getPdfContent()
throws org.axsl.graphic.GraphicException
PDFXForm
getPdfContent in class PDFXFormorg.axsl.graphic.GraphicException - For errors during conversion.public float getHorizontalScaling(Rectangle2D.Float contentRectangle)
PDFXObject
getHorizontalScaling in class PDFXObjectcontentRectangle - The content rectangle into which the graphic
will be scaled.
public float getVerticalScaling(Rectangle2D.Float contentRectangle)
PDFXObjectPDFXObject.getHorizontalScaling(java.awt.geom.Rectangle2D.Float) for an
explanation of the need for this computation.
getVerticalScaling in class PDFXObjectcontentRectangle - The content rectangle into which the graphic
will be scaled.
public org.axsl.graphic.EpsGraphic getGraphic()
PDFXObject
getGraphic in class PDFXObjectprotected org.axsl.ps.PsBoundingBox getBoundingBox()
PDFXForm
getBoundingBox in class PDFXFormprotected String specialXFormDict()
PDFXForm
specialXFormDict in class PDFXFormprotected AffineTransform getUserSpaceTransform()
PDFXForm
getUserSpaceTransform in class PDFXForm
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||