Class Java2DMarkupHandler
java.lang.Object
com.inductiveautomation.rm.pdf.reader.PDFMarkupHandler
com.inductiveautomation.rm.pdf.reader.Java2DMarkupHandler
- Direct Known Subclasses:
- BufferedMarkupHandler
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidbeginPage(float width, float height) Set the bounds of the page.voidreset the clipvoiddrawImage(PDFGState g, Image i, AffineTransform ixform) Draw an imagevoidvoidendPage()Restore Graphics2D to the state it was in before we started.voidfillPath(PDFGState g, GeneralPath p) Fill the current path using the fill params in the gstateReturn an awt FontRenderContext object which will be used to render the fonts.Return an awt Graphics object which will be used for suspect purposes.voidSet the bounds in the Graphics2D's coordinate system where the page will be drawn.voidSet the Graphics2D object that will do all the rendering.voidshowText(PDFGState g, GlyphVector v) Draw some text at the current text position.voidstrokePath(PDFGState g, GeneralPath p) Stroke the current path with the current miter limit, color, etc.voidsun_bug_4723021_workaround(Image i, AffineTransform ixform) http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4723021
- 
Constructor Details- 
Java2DMarkupHandler
 
- 
- 
Method Details- 
setGraphicsSet the Graphics2D object that will do all the rendering.
- 
getGraphicsDescription copied from class:PDFMarkupHandlerReturn an awt Graphics object which will be used for suspect purposes. TODO: this is really to help get the FontMetrics for a given font- Specified by:
- getGraphicsin class- PDFMarkupHandler
 
- 
setDestinationRectSet the bounds in the Graphics2D's coordinate system where the page will be drawn.
- 
beginPagepublic void beginPage(float width, float height) Set the bounds of the page. This will be called before any marking operations.- Specified by:
- beginPagein class- PDFMarkupHandler
 
- 
endPagepublic void endPage()Restore Graphics2D to the state it was in before we started.- Overrides:
- endPagein class- PDFMarkupHandler
 
- 
clipChangedreset the clip- Specified by:
- clipChangedin class- PDFMarkupHandler
 
- 
strokePathStroke the current path with the current miter limit, color, etc.- Specified by:
- strokePathin class- PDFMarkupHandler
 
- 
fillPathFill the current path using the fill params in the gstate- Specified by:
- fillPathin class- PDFMarkupHandler
 
- 
drawImageDraw an image- Specified by:
- drawImagein class- PDFMarkupHandler
 
- 
drawTiledImage
- 
sun_bug_4723021_workaroundhttp://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4723021Applying a transform to an image with interesting SampleModels fails. To work around this, we try creating an untransformed RGBA image first and then redrawing that with the desired transform. 
- 
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.- Specified by:
- showTextin class- PDFMarkupHandler
 
- 
getFontRenderContextDescription copied from class:PDFMarkupHandlerReturn an awt FontRenderContext object which will be used to render the fonts. The same rendercontext is used for the entire page.- Specified by:
- getFontRenderContextin class- PDFMarkupHandler
 
 
-