Class PDFMarkupHandler
java.lang.Object
com.inductiveautomation.rm.pdf.reader.PDFMarkupHandler
- Direct Known Subclasses:
- Java2DMarkupHandler
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract voidbeginPage(float width, float height) Set the bounds of the page.abstract voidNotifies that a change has been made to the current clipping pathabstract voiddrawImage(PDFGState g, Image i, AffineTransform ixform) Draw an imagevoidendPage()Called when all drawing is done.abstract voidfillPath(PDFGState g, GeneralPath p) Fill the current path using the fill params in the gstateabstract FontRenderContextReturn an awt FontRenderContext object which will be used to render the fonts.abstract GraphicsReturn an awt Graphics object which will be used for suspect purposes.abstract voidshowText(PDFGState g, GlyphVector v) Draw some text at the current text position.abstract voidstrokePath(PDFGState g, GeneralPath p) Stroke the current path with the current miter limit, color, etc.
- 
Constructor Details- 
PDFMarkupHandlerpublic PDFMarkupHandler()
 
- 
- 
Method Details- 
beginPagepublic abstract void beginPage(float width, float height) Set the bounds of the page. This will be called before any marking operations.
- 
endPagepublic void endPage()Called when all drawing is done. (optional)
- 
strokePathStroke the current path with the current miter limit, color, etc.
- 
fillPathFill the current path using the fill params in the gstate
- 
clipChangedNotifies that a change has been made to the current clipping path
- 
drawImageDraw an image
- 
showTextDraw some text at the current text position. The glyphVector will have been created by the parser using the current font and its character encodings.
- 
getFontRenderContextReturn an awt FontRenderContext object which will be used to render the fonts. The same rendercontext is used for the entire page.
- 
getGraphicsReturn an awt Graphics object which will be used for suspect purposes. TODO: this is really to help get the FontMetrics for a given font
 
-