Class ComponentRenderer
java.lang.Object
io.keikai.doc.io.schema.pdf.render.ComponentRenderer
- All Implemented Interfaces:
IRenderer
- Direct Known Subclasses:
DefaultComponentRenderer
Internal Use Only.
Renderer to render a ComponentNode.
- Author:
- Jamson Chan
-
Constructor Summary
ConstructorsConstructorDescriptionComponentRenderer(PDFComponent pdfComponent, ParagraphRenderer parent, float leftX) Create aComponentRendererinstance. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.pdfbox.pdmodel.PDPageContentStreamgetCS()Returns the content stream of current page.floatgetLeftX()Returns the x coordinate to start rendering.Returns thePDFComponentto render.Returns the root renderer.floatgetY()Returns the y coordinate to start rendering.
-
Constructor Details
-
ComponentRenderer
Create aComponentRendererinstance.- Parameters:
pdfComponent- thePDFComponentto renderparent- the parentParagraphRendererleftX- the x coordinate to start rendering
-
-
Method Details
-
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. -
getPDFComponent
Returns thePDFComponentto render.- Returns:
- the
PDFComponentto render
-
getLeftX
public float getLeftX()Returns the x coordinate to start rendering.- Returns:
- the x coordinate to start rendering
-
getY
public float getY()Returns the y coordinate to start rendering.- Returns:
- the y coordinate to start rendering
-