Class Table

    • Field Detail

      • DEFAULT_CELL_BORDER_WIDTH

        public static final float DEFAULT_CELL_BORDER_WIDTH
        See Also:
        Constant Field Values
    • Constructor Detail

      • Table

        public Table()
        Default constructor.
    • Method Detail

      • intPdfPTable

        protected PdfPTable intPdfPTable​(int numberOfColumn)
      • setStyleValues

        public static TableStyleValues setStyleValues​(Tag tag)
        Set the table style values in a TableStyleValues object based on attributes and css of the given tag.
        Parameters:
        tag - containing attributes and css.
        Returns:
        a TableStyleValues object containing the table's style values.
      • setBorderAttributeForCell

        public static TableStyleValues setBorderAttributeForCell​(Tag tag)
      • getBorderOrCellSpacing

        public static float getBorderOrCellSpacing​(boolean getHor,
                                                   Map<String,​String> css,
                                                   Map<String,​String> attributes)
        Extracts and parses the style border-spacing or the attribute cellspacing of a table tag, if present. Favors the style border-spacing over the attribute cellspacing.
        If style="border-collapse:collapse" is found in the css, the spacing is always 0f.
        If no spacing is set, the default of 1.5pt is returned.
        Parameters:
        getHor - true for horizontal spacing, false for vertical spacing.
        css - of the table tag.
        attributes - of the table tag.
        Returns:
        horizontal or vertical spacing between two cells or a cell and the border of the table.