Class TableRenderer
java.lang.Object
io.keikai.doc.io.schema.pdf.render.TableRenderer
- All Implemented Interfaces:
IBlockRenderer,IRenderer
Internal Use Only.
Renderer to render a TableNode.
- Author:
- jamson
-
Constructor Summary
ConstructorsConstructorDescriptionTableRenderer(PDFTable pdfTable, ContainerRenderer parent, float leftX, float rightX) Create aTableRendererinstance. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.pdfbox.pdmodel.PDPageContentStreamgetCS()Returns the content stream of current page.floatgetLeftX()Returns the left x position of the block.floatReturns the right x position of the block.Returns the root renderer.floatgetWidth()Returns the width of the block.voidrender()Render theDocumentNode.
-
Constructor Details
-
TableRenderer
Create aTableRendererinstance.- Parameters:
pdfTable- thePDFTableto renderparent- the parentContainerRendererleftX- the left x coordinate of the tablerightX- the right x coordinate of the table
-
-
Method Details
-
render
public void render()Description copied from interface:IRendererRender theDocumentNode. -
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.
-