Class TableRenderer
- java.lang.Object
-
- io.keikai.doc.io.schema.pdf.render.TableRenderer
-
- All Implemented Interfaces:
IBlockRenderer,IRenderer
public class TableRenderer extends java.lang.Object implements IBlockRenderer
Internal Use Only.Renderer to render a
TableNode.- Author:
- jamson
-
-
Constructor Summary
Constructors Constructor Description TableRenderer(PDFTable pdfTable, IContainerRenderer parent, float leftX, float rightX)Create aTableRendererinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.pdfbox.pdmodel.PDPageContentStreamgetCS()Returns the content stream of current page.floatgetLeftX()Returns the left x position of the block.floatgetRightX()Returns the right x position of the block.DocumentRenderergetRootRenderer()Returns the root renderer.floatgetWidth()Returns the width of the block.voidrender()Render theDocumentNode.
-
-
-
Constructor Detail
-
TableRenderer
public TableRenderer(PDFTable pdfTable, IContainerRenderer parent, float leftX, float rightX)
Create aTableRendererinstance.- Parameters:
pdfTable- thePDFTableto renderparent- the parentIContainerRendererleftX- the left x coordinate of the tablerightX- the right x coordinate of the table
-
-
Method Detail
-
render
public void render() throws java.io.IOExceptionDescription copied from interface:IRendererRender theDocumentNode.
-
getRootRenderer
public DocumentRenderer getRootRenderer()
Description copied from interface:IRendererReturns the root renderer.- Specified by:
getRootRendererin interfaceIRenderer- Returns:
- the root renderer
-
getCS
public org.apache.pdfbox.pdmodel.PDPageContentStream getCS()
Description copied from interface:IRendererReturns the content stream of current page.
-
getLeftX
public float getLeftX()
Description copied from interface:IBlockRendererReturns the left x position of the block.- Specified by:
getLeftXin interfaceIBlockRenderer- Returns:
- the left x position of the block.
-
getRightX
public float getRightX()
Description copied from interface:IBlockRendererReturns the right x position of the block.- Specified by:
getRightXin interfaceIBlockRenderer- Returns:
- the right x position of the block.
-
getWidth
public float getWidth()
Description copied from interface:IBlockRendererReturns the width of the block.- Specified by:
getWidthin interfaceIBlockRenderer- Returns:
- the width of the block.
-
-