|
||||||||||
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.PdfXFormMath
public class PdfXFormMath
A PDF "Form" XObject containing a MathML document.
Field Summary |
---|
Fields inherited from class org.foray.pdf.object.PDFObject |
---|
EOL, MSG_EOL, XREF_EOL |
Constructor Summary | |
---|---|
PdfXFormMath(PDFDocument doc,
org.axsl.graphic.MathGraphic graphic,
org.axsl.font.FontConsumer fontConsumer,
boolean strokeText)
Constructor. |
Method Summary | |
---|---|
protected org.axsl.ps.PsBoundingBox |
getBoundingBox()
Returns the bounding box dimensions, in form space, for this graphic. |
org.axsl.graphic.MathGraphic |
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 PdfXFormMath(PDFDocument doc, org.axsl.graphic.MathGraphic graphic, org.axsl.font.FontConsumer fontConsumer, boolean strokeText) throws org.axsl.graphic.GraphicException
doc
- The parent PDF document.graphic
- The form to be encapsulated.fontConsumer
- The font consumer to use for resolving fonts in the
SVG.strokeText
- Set to true if text should be stroked, false if it
should be drawn with a font.
org.axsl.graphic.GraphicException
- For errors getting the appropriate filter.Method Detail |
---|
protected byte[] getPdfContent() throws org.axsl.graphic.GraphicException
PDFXForm
getPdfContent
in class PDFXForm
org.axsl.graphic.GraphicException
- For errors during conversion.public float getHorizontalScaling(Rectangle2D.Float contentRectangle)
PDFXObject
getHorizontalScaling
in class PDFXObject
contentRectangle
- The content rectangle into which the graphic
will be scaled.
public float getVerticalScaling(Rectangle2D.Float contentRectangle)
PDFXObject
PDFXObject.getHorizontalScaling(java.awt.geom.Rectangle2D.Float)
for an
explanation of the need for this computation.
getVerticalScaling
in class PDFXObject
contentRectangle
- The content rectangle into which the graphic
will be scaled.
public org.axsl.graphic.MathGraphic getGraphic()
PDFXObject
getGraphic
in class PDFXObject
protected org.axsl.ps.PsBoundingBox getBoundingBox()
PDFXForm
getBoundingBox
in class PDFXForm
protected String specialXFormDict()
PDFXForm
specialXFormDict
in class PDFXForm
protected AffineTransform getUserSpaceTransform()
PDFXForm
getUserSpaceTransform
in class PDFXForm
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |