Class ParagraphRenderer

java.lang.Object
io.keikai.doc.io.schema.pdf.render.ParagraphRenderer
All Implemented Interfaces:
IBlockRenderer, IRenderer

public class ParagraphRenderer extends Object implements IBlockRenderer
Internal Use Only.

Renderer to render a ParagraphNode.

Author:
Jamson Chan
  • Constructor Details

  • Method Details

    • render

      public void render()
      Description copied from interface: IRenderer
      Render the DocumentNode.
      Specified by:
      render in interface IRenderer
    • getRootRenderer

      public DocumentRenderer getRootRenderer()
      Description copied from interface: IRenderer
      Returns the root renderer.
      Specified by:
      getRootRenderer in interface IRenderer
      Returns:
      the root renderer
    • getCS

      public org.apache.pdfbox.pdmodel.PDPageContentStream getCS()
      Description copied from interface: IRenderer
      Returns the content stream of current page.
      Specified by:
      getCS in interface IRenderer
      Returns:
      the content stream of current page
    • getCursorY

      public float getCursorY()
      Returns the current cursor y position.
      Returns:
      the current cursor y position.
    • getLeftX

      public float getLeftX()
      Description copied from interface: IBlockRenderer
      Returns the left x position of the block.
      Specified by:
      getLeftX in interface IBlockRenderer
      Returns:
      the left x position of the block.
    • getRightX

      public float getRightX()
      Description copied from interface: IBlockRenderer
      Returns the right x position of the block.
      Specified by:
      getRightX in interface IBlockRenderer
      Returns:
      the right x position of the block.
    • getWidth

      public float getWidth()
      Description copied from interface: IBlockRenderer
      Returns the width of the block.
      Specified by:
      getWidth in interface IBlockRenderer
      Returns:
      the width of the block.