Class TableRenderer

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

public class TableRenderer extends Object implements IBlockRenderer
Internal Use Only.

Renderer to render a TableNode.

Author:
jamson
  • Constructor Details

    • TableRenderer

      public TableRenderer(PDFTable pdfTable, ContainerRenderer parent, float leftX, float rightX)
      Create a TableRenderer instance.
      Parameters:
      pdfTable - the PDFTable to render
      parent - the parent ContainerRenderer
      leftX - the left x coordinate of the table
      rightX - the right x coordinate of the table
  • 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
    • 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.