Package com.ribs.pdf

Class PDFMarkupHandler

java.lang.Object
com.ribs.pdf.PDFMarkupHandler
Direct Known Subclasses:
Java2DMarkupHandler

public abstract class PDFMarkupHandler extends Object
  • 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

      public abstract void strokePath(PDFGState g, GeneralPath p)
      Stroke the current path with the current miter limit, color, etc.
    • fillPath

      public abstract void fillPath(PDFGState g, GeneralPath p)
      Fill the current path using the fill params in the gstate
    • clipChanged

      public abstract void clipChanged(PDFGState g)
      Notifies that a change has been made to the current clipping path
    • drawImage

      public abstract void drawImage(PDFGState g, Image i, AffineTransform ixform)
      Draw an image
    • showText

      public abstract void showText(PDFGState g, GlyphVector v)
      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

      public abstract FontRenderContext getFontRenderContext()
      Return an awt FontRenderContext object which will be used to render the fonts. The same rendercontext is used for the entire page.
    • getGraphics

      public abstract Graphics 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