Class BorderCell

  • All Implemented Interfaces:
    com.itextpdf.text.pdf.PdfPCellEvent

    public class BorderCell
    extends java.lang.Object
    implements com.itextpdf.text.pdf.PdfPCellEvent
    Class for creating the cell border.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static float THICK_BORDER
      The value for a thick border.
      static float THIN_BORDER
      The value for a thin border.
    • Constructor Summary

      Constructors 
      Constructor Description
      BorderCell​(int border, float lineWidth)
      Constructor for this class.
    • Method Summary

      Modifier and Type Method Description
      void cellLayout​(com.itextpdf.text.pdf.PdfPCell cell, com.itextpdf.text.Rectangle position, com.itextpdf.text.pdf.PdfContentByte[] canvases)
      Creates the formatting for the cell.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • THICK_BORDER

        public static final float THICK_BORDER
        The value for a thick border.
        See Also:
        Constant Field Values
      • THIN_BORDER

        public static final float THIN_BORDER
        The value for a thin border.
        See Also:
        Constant Field Values
    • Constructor Detail

      • BorderCell

        public BorderCell​(int border,
                          float lineWidth)
        Constructor for this class.
        Parameters:
        border - the cell border
        lineWidth - the line width for the cell border
    • Method Detail

      • cellLayout

        public void cellLayout​(com.itextpdf.text.pdf.PdfPCell cell,
                               com.itextpdf.text.Rectangle position,
                               com.itextpdf.text.pdf.PdfContentByte[] canvases)
        Creates the formatting for the cell.
        Specified by:
        cellLayout in interface com.itextpdf.text.pdf.PdfPCellEvent
        Parameters:
        cell - the cell
        position - the position of the cell
        canvases - the canvases for the cell