Class PatchRtfTable
- java.lang.Object
-
- com.lowagie.text.rtf.RtfElement
-
- org.pentaho.reporting.engine.classic.core.modules.output.table.rtf.itext.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)
-
-
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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getAlignment()
Gets the alignment of this PatchRtfTableprotected PatchRtfBorderGroup
getBorders()
Gets the borders of this PatchRtfTableprotected float
getCellPadding()
Gets the cell padding of this PatchRtfTableprotected boolean
getCellsFitToPage()
Gets the cellsFitToPage setting of this PatchRtfTable.protected float
getCellSpacing()
Gets the cell spacing of this PatchRtfTableprotected int
getHeaderRows()
Gets the number of header rows of this PatchRtfTableprotected float[]
getProportionalWidths()
Gets the proportional cell widths of this PatchRtfTableprotected ArrayList
getRows()
Gets the rows of this PatchRtfTableprotected boolean
getTableFitToPage()
Gets the tableFitToPage setting of this PatchRtfTable.protected float
getTableWidthPercent()
Gets the percentage of the page width this PatchRtfTable coversvoid
writeContent(OutputStream result)
Writes the content of this PatchRtfTable
-
-
-
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 totable
- 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 totable
- 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 interfacecom.lowagie.text.rtf.RtfBasicElement
- Specified by:
writeContent
in classcom.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
-
-