Class CellSpacingEvent

java.lang.Object
com.itextpdf.tool.xml.html.table.CellSpacingEvent
All Implemented Interfaces:
PdfPCellEvent

public class CellSpacingEvent extends Object implements PdfPCellEvent
  • Field Details

  • Constructor Details

    • CellSpacingEvent

      public CellSpacingEvent(TableStyleValues styleValues)
      Construct a new CellSpacingEvent with the given TableStyleValues
      Parameters:
      styleValues - the TableStyleValues
  • Method Details

    • cellLayout

      public void cellLayout(PdfPCell cell, Rectangle position, PdfContentByte[] canvases)
      Description copied from interface: PdfPCellEvent
      This method is called at the end of the cell rendering. The text or graphics are added to one of the 4 PdfContentByte contained in canvases.
      The indexes to 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.
      The layers are placed in sequence on top of each other.

      Specified by:
      cellLayout in interface PdfPCellEvent
      Parameters:
      cell - the cell
      position - the coordinates of the cell
      canvases - an array of PdfContentByte
      See Also: