Package com.itextpdf.tool.xml.html.table
Class CellSpacingEvent
- java.lang.Object
-
- com.itextpdf.tool.xml.html.table.CellSpacingEvent
-
- All Implemented Interfaces:
PdfPCellEvent
public class CellSpacingEvent extends java.lang.Object implements PdfPCellEvent
-
-
Field Summary
Fields Modifier and Type Field Description private TableStyleValuesstyleValues
-
Constructor Summary
Constructors Constructor Description CellSpacingEvent(TableStyleValues styleValues)Construct a new CellSpacingEvent with the given TableStyleValues
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcellLayout(PdfPCell cell, Rectangle position, PdfContentByte[] canvases)This method is called at the end of the cell rendering.
-
-
-
Field Detail
-
styleValues
private final TableStyleValues styleValues
-
-
Constructor Detail
-
CellSpacingEvent
public CellSpacingEvent(TableStyleValues styleValues)
Construct a new CellSpacingEvent with the given TableStyleValues- Parameters:
styleValues- the TableStyleValues
-
-
Method Detail
-
cellLayout
public void cellLayout(PdfPCell cell, Rectangle position, PdfContentByte[] canvases)
Description copied from interface:PdfPCellEventThis method is called at the end of the cell rendering. The text or graphics are added to one of the 4PdfContentBytecontained incanvases.
The indexes tocanvasesare:PdfPTable.BASECANVAS- the originalPdfContentByte. Anything placed here will be under the cell.PdfPTable.BACKGROUNDCANVAS- the layer where the background goes to.PdfPTable.LINECANVAS- the layer where the lines go to.PdfPTable.TEXTCANVAS- the layer where the text go to. Anything placed here will be over the cell.
- Specified by:
cellLayoutin interfacePdfPCellEvent- Parameters:
cell- the cellposition- the coordinates of the cellcanvases- an array ofPdfContentByte- See Also:
PdfPCellEvent.cellLayout(com.itextpdf.text.pdf.PdfPCell, com.itextpdf.text.Rectangle, com.itextpdf.text.pdf.PdfContentByte[])
-
-