com.lowagie.text.rtf.table
public class RtfTable extends RtfElement
Modifier and Type | Field and Description |
---|---|
private int |
alignment
The alignment of this RtfTable
|
private RtfBorderGroup |
borders
The border style of this RtfTable
|
private float |
cellPadding
The cell padding
|
private boolean |
cellsFitToPage
Whether the cells in this RtfTable must fit in a page
|
private float |
cellSpacing
The cell spacing
|
private int |
headerRows
The number of header rows in this RtfTable
|
private int |
offset
The offset from the previous text
|
private float[] |
proportionalWidths
An array with the proportional widths of the cells in each row
|
private java.util.ArrayList |
rows
The rows of this RtfTable
|
private boolean |
tableFitToPage
Whether the whole RtfTable must fit in a page
|
private float |
tableWidthPercent
The percentage of the page width that this RtfTable covers
|
document, inHeader, inTable
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR
Constructor and Description |
---|
RtfTable(RtfDocument doc,
PdfPTable table)
Constructs a RtfTable based on a PdfTable for a RtfDocument.
|
RtfTable(RtfDocument doc,
Table table)
Constructs a RtfTable based on a Table for a RtfDocument.
|
Modifier and Type | Method and Description |
---|---|
protected int |
getAlignment()
Gets the alignment of this RtfTable
|
protected RtfBorderGroup |
getBorders()
Gets the borders of this RtfTable
|
protected float |
getCellPadding()
Gets the cell padding of this RtfTable
|
protected boolean |
getCellsFitToPage()
Gets the cellsFitToPage setting of this RtfTable.
|
protected float |
getCellSpacing()
Gets the cell spacing of this RtfTable
|
protected int |
getHeaderRows()
Gets the number of header rows of this RtfTable
|
protected float[] |
getProportionalWidths()
Gets the proportional cell widths of this RtfTable
|
protected java.util.ArrayList |
getRows()
Gets the rows of this RtfTable
|
protected boolean |
getTableFitToPage()
Gets the tableFitToPage setting of this RtfTable.
|
protected float |
getTableWidthPercent()
Gets the percentage of the page width this RtfTable covers
|
private void |
importTable(PdfPTable table)
Imports the rows and settings from the Table into this
RtfTable.
|
private void |
importTable(Table table)
Imports the rows and settings from the Table into this
RtfTable.
|
void |
writeContent(java.io.OutputStream result)
Writes the content of this RtfTable
|
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocument
private java.util.ArrayList rows
private float tableWidthPercent
private float[] proportionalWidths
private float cellPadding
private float cellSpacing
private RtfBorderGroup borders
private int alignment
private boolean cellsFitToPage
private boolean tableFitToPage
private int headerRows
private int offset
public RtfTable(RtfDocument doc, Table table)
doc
- The RtfDocument this RtfTable belongs totable
- The Table that this RtfTable wrapspublic RtfTable(RtfDocument doc, PdfPTable table)
doc
- The RtfDocument this RtfTable belongs totable
- The PdfPTable that this RtfTable wrapsprivate void importTable(Table table)
table
- The source Tableprivate void importTable(PdfPTable table)
table
- The source PdfPTablepublic void writeContent(java.io.OutputStream result) throws java.io.IOException
writeContent
in interface RtfBasicElement
writeContent
in class RtfElement
result
- The OutputStream
to write the content tojava.io.IOException
protected int getAlignment()
protected RtfBorderGroup getBorders()
protected float getCellPadding()
protected float getCellSpacing()
protected float[] getProportionalWidths()
protected float getTableWidthPercent()
protected java.util.ArrayList getRows()
protected boolean getCellsFitToPage()
protected boolean getTableFitToPage()
protected int getHeaderRows()