Class PatchRtfRow

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

    public class PatchRtfRow
    extends com.lowagie.text.rtf.RtfElement
    The PatchRtfRow wraps one Row for a PatchRtfTable. INTERNAL USE ONLY
    Version:
    $Id: PatchRtfRow.java 3735 2009-02-26 01:44:03Z xlv $
    Author:
    Mark Hall (Mark.Hall@mail.room3b.eu), Steffen Stundzig, Lorenz Maierhofer, 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 
      Modifier Constructor Description
      protected PatchRtfRow​(com.lowagie.text.rtf.document.RtfDocument doc, PatchRtfTable PatchRtfTable, com.lowagie.text.pdf.PdfPRow row, int rowNumber)
      Constructs a PatchRtfRow for a Row.
      protected PatchRtfRow​(com.lowagie.text.rtf.document.RtfDocument doc, PatchRtfTable PatchRtfTable, com.lowagie.text.Row row, int rowNumber)
      Constructs a PatchRtfRow for a Row.
    • Constructor Detail

      • PatchRtfRow

        protected PatchRtfRow​(com.lowagie.text.rtf.document.RtfDocument doc,
                              PatchRtfTable PatchRtfTable,
                              com.lowagie.text.Row row,
                              int rowNumber)
        Constructs a PatchRtfRow for a Row.
        Parameters:
        doc - The RtfDocument this PatchRtfRow belongs to
        PatchRtfTable - The PatchRtfTable this PatchRtfRow belongs to
        row - The Row this PatchRtfRow is based on
        rowNumber - The number of this row
      • PatchRtfRow

        protected PatchRtfRow​(com.lowagie.text.rtf.document.RtfDocument doc,
                              PatchRtfTable PatchRtfTable,
                              com.lowagie.text.pdf.PdfPRow row,
                              int rowNumber)
        Constructs a PatchRtfRow for a Row.
        Parameters:
        doc - The RtfDocument this PatchRtfRow belongs to
        PatchRtfTable - The PatchRtfTable this PatchRtfRow belongs to
        row - The Row this PatchRtfRow is based on
        rowNumber - The number of this row
        Since:
        2.1.3
    • Method Detail

      • handleCellSpanning

        protected void handleCellSpanning()
        Performs a second pass over all cells to handle cell row/column spanning.
      • cleanRow

        protected void cleanRow()
        Cleans the deleted PatchRtfCells from the total PatchRtfCells.
      • writeContent

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

        protected PatchRtfTable getParentTable()
        Gets the parent PatchRtfTable of this PatchRtfRow
        Returns:
        The parent PatchRtfTable of this PatchRtfRow
      • getCells

        protected ArrayList<PatchRtfCell> getCells()
        Gets the cells of this PatchRtfRow
        Returns:
        The cells of this PatchRtfRow