public class PdfPCellEventForwarder extends Object implements PdfPCellEvent
Modifier and Type | Field and Description |
---|---|
protected ArrayList<PdfPCellEvent> |
events
ArrayList containing all the PageEvents that have to be executed.
|
Constructor and Description |
---|
PdfPCellEventForwarder() |
Modifier and Type | Method and Description |
---|---|
void |
addCellEvent(PdfPCellEvent event)
Add a page event to the forwarder.
|
void |
cellLayout(PdfPCell cell, Rectangle position, PdfContentByte[] canvases)
This method is called at the end of the cell rendering.
|
protected ArrayList<PdfPCellEvent> events
public void addCellEvent(PdfPCellEvent event)
event
- an event that has to be added to the forwarder.
public void cellLayout(PdfPCell cell, Rectangle position, PdfContentByte[] canvases)
PdfPCellEvent
PdfContentByte
contained in canvases
.
canvases
are:
PdfPTable.BASECANVAS
- the original PdfContentByte
. 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. cellLayout
in interface PdfPCellEvent
cell
- the cell
position
- the coordinates of the cell
canvases
- an array of PdfContentByte
PdfPCellEvent.cellLayout(com.itextpdf.text.pdf.PdfPCell, com.itextpdf.text.Rectangle, com.itextpdf.text.pdf.PdfContentByte[])
Copyright © 1998–2024. All rights reserved.