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 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 imageabstract 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
-
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
-