Class PatchRtfTable

  • All Implemented Interfaces:
    com.lowagie.text.rtf.RtfBasicElement, com.lowagie.text.RtfElementInterface

    public class PatchRtfTable
    extends com.lowagie.text.rtf.RtfElement
    The PatchRtfTable wraps a Table. INTERNAL USE ONLY
    Version:
    $Id: PatchRtfTable.java 3533 2008-07-07 21:27:13Z Howard_s $
    Author:
    Mark Hall (Mark.Hall@mail.room3b.eu), Steffen Stundzig, Benoit Wiart, Thomas Bickel (tmb99@inode.at)
    • Field Summary

      • Fields inherited from class com.lowagie.text.rtf.RtfElement

        document, inHeader, inTable
      • Fields inherited from interface com.lowagie.text.rtf.RtfBasicElement

        CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR
    • Constructor Summary

      Constructors 
      Constructor Description
      PatchRtfTable​(com.lowagie.text.rtf.document.RtfDocument doc, com.lowagie.text.pdf.PdfPTable table)
      Constructs a PatchRtfTable based on a PdfTable for a RtfDocument.
      PatchRtfTable​(com.lowagie.text.rtf.document.RtfDocument doc, com.lowagie.text.Table table)
      Constructs a PatchRtfTable based on a Table for a RtfDocument.
    • Constructor Detail

      • PatchRtfTable

        public PatchRtfTable​(com.lowagie.text.rtf.document.RtfDocument doc,
                             com.lowagie.text.Table table)
        Constructs a PatchRtfTable based on a Table for a RtfDocument.
        Parameters:
        doc - The RtfDocument this PatchRtfTable belongs to
        table - The Table that this PatchRtfTable wraps
      • PatchRtfTable

        public PatchRtfTable​(com.lowagie.text.rtf.document.RtfDocument doc,
                             com.lowagie.text.pdf.PdfPTable table)
        Constructs a PatchRtfTable based on a PdfTable for a RtfDocument.
        Parameters:
        doc - The RtfDocument this PatchRtfTable belongs to
        table - The PdfPTable that this PatchRtfTable wraps
        Since:
        2.1.3
    • Method Detail

      • writeContent

        public void writeContent​(OutputStream result)
                          throws IOException
        Writes the content of this PatchRtfTable
        Specified by:
        writeContent in interface com.lowagie.text.rtf.RtfBasicElement
        Specified by:
        writeContent in class com.lowagie.text.rtf.RtfElement
        Throws:
        IOException
      • getAlignment

        protected int getAlignment()
        Gets the alignment of this PatchRtfTable
        Returns:
        The alignment of this PatchRtfTable.
      • getBorders

        protected PatchRtfBorderGroup getBorders()
        Gets the borders of this PatchRtfTable
        Returns:
        The borders of this PatchRtfTable.
      • getCellPadding

        protected float getCellPadding()
        Gets the cell padding of this PatchRtfTable
        Returns:
        The cell padding of this PatchRtfTable.
      • getCellSpacing

        protected float getCellSpacing()
        Gets the cell spacing of this PatchRtfTable
        Returns:
        The cell spacing of this PatchRtfTable.
      • getProportionalWidths

        protected float[] getProportionalWidths()
        Gets the proportional cell widths of this PatchRtfTable
        Returns:
        The proportional widths of this PatchRtfTable.
      • getTableWidthPercent

        protected float getTableWidthPercent()
        Gets the percentage of the page width this PatchRtfTable covers
        Returns:
        The percentage of the page width.
      • getRows

        protected ArrayList getRows()
        Gets the rows of this PatchRtfTable
        Returns:
        The rows of this PatchRtfTable
      • getCellsFitToPage

        protected boolean getCellsFitToPage()
        Gets the cellsFitToPage setting of this PatchRtfTable.
        Returns:
        The cellsFitToPage setting of this PatchRtfTable.
      • getTableFitToPage

        protected boolean getTableFitToPage()
        Gets the tableFitToPage setting of this PatchRtfTable.
        Returns:
        The tableFitToPage setting of this PatchRtfTable.
      • getHeaderRows

        protected int getHeaderRows()
        Gets the number of header rows of this PatchRtfTable
        Returns:
        The number of header rows