Package com.ribs.pdf
Class PDFMarkupHandler
java.lang.Object
com.ribs.pdf.PDFMarkupHandler
- Direct Known Subclasses:
Java2DMarkupHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
beginPage
(float width, float height) Set the bounds of the page.abstract void
Notifies that a change has been made to the current clipping pathabstract void
drawImage
(PDFGState g, Image i, AffineTransform ixform) Draw an imageabstract void
fillPath
(PDFGState g, GeneralPath p) Fill the current path using the fill params in the gstateabstract FontRenderContext
Return an awt FontRenderContext object which will be used to render the fonts.abstract Graphics
Return an awt Graphics object which will be used for suspect purposes.abstract void
showText
(PDFGState g, GlyphVector v) Draw some text at the current text position.abstract void
strokePath
(PDFGState g, GeneralPath p) Stroke the current path with the current miter limit, color, etc.
-
Constructor Details
-
PDFMarkupHandler
public PDFMarkupHandler()
-
-
Method Details
-
beginPage
public abstract void beginPage(float width, float height) Set the bounds of the page. This will be called before any marking operations. -
strokePath
Stroke the current path with the current miter limit, color, etc. -
fillPath
Fill the current path using the fill params in the gstate -
clipChanged
Notifies that a change has been made to the current clipping path -
drawImage
Draw an image -
showText
Draw some text at the current text position. The glyphVector will have been created by the parser using the current font and its character encodings. -
getFontRenderContext
Return an awt FontRenderContext object which will be used to render the fonts. The same rendercontext is used for the entire page. -
getGraphics
Return an awt Graphics object which will be used for suspect purposes. XXX: this is really to help get the FontMetrics for a given font
-