Interface IContainerRenderer
-
- All Superinterfaces:
IRenderer
- All Known Implementing Classes:
DocumentRenderer,HeaderFooterRenderer,TableCellRenderer
public interface IContainerRenderer extends IRenderer
Internal Use Only.Interface to render
ContainerNode.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddecreaseCursorY(float offset)Decrease (move down) the current cursor y position by the given offset.floatgetCursorY()Returns the current cursor y position.org.apache.pdfbox.pdmodel.common.PDRectanglegetRect()Returns the rectangle of the current page.voidhandleExceedY()Handle the case that the current cursor y position is exceed the rectangle of the current page.booleanisExceedY(float offset)Returns whether the current cursor y position with the given offset is exceed the rectangle of the current page.-
Methods inherited from interface io.keikai.doc.io.schema.pdf.render.IRenderer
getCS, getRootRenderer, render
-
-
-
-
Method Detail
-
getRect
org.apache.pdfbox.pdmodel.common.PDRectangle getRect()
Returns the rectangle of the current page.- Returns:
- the rectangle of the current page.
-
getCursorY
float getCursorY()
Returns the current cursor y position.- Returns:
- the current cursor y position.
-
decreaseCursorY
void decreaseCursorY(float offset)
Decrease (move down) the current cursor y position by the given offset.- Parameters:
offset- the y offset to decrease.
-
isExceedY
boolean isExceedY(float offset)
Returns whether the current cursor y position with the given offset is exceed the rectangle of the current page.- Parameters:
offset- the y offset to check.- Returns:
- whether exceed the rectangle of the current page.
-
handleExceedY
void handleExceedY() throws java.io.IOExceptionHandle the case that the current cursor y position is exceed the rectangle of the current page.- Throws:
java.io.IOException- if an I/O error occurs.
-
-