com.lowagie.text.rtf.table
Class RtfTable

java.lang.Object
  extended by com.lowagie.text.rtf.RtfElement
      extended by com.lowagie.text.rtf.table.RtfTable
All Implemented Interfaces:
RtfBasicElement, RtfElementInterface

public class RtfTable
extends RtfElement

The RtfTable wraps a Table. INTERNAL USE ONLY

Version:
$Id: RtfTable.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
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.
 
Method Summary
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
 void writeContent(java.io.OutputStream result)
          Writes the content of this RtfTable
 
Methods inherited from class com.lowagie.text.rtf.RtfElement
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RtfTable

public RtfTable(RtfDocument doc,
                Table table)
Constructs a RtfTable based on a Table for a RtfDocument.

Parameters:
doc - The RtfDocument this RtfTable belongs to
table - The Table that this RtfTable wraps

RtfTable

public RtfTable(RtfDocument doc,
                PdfPTable table)
Constructs a RtfTable based on a PdfTable for a RtfDocument.

Parameters:
doc - The RtfDocument this RtfTable belongs to
table - The PdfPTable that this RtfTable wraps
Since:
2.1.3
Method Detail

writeContent

public void writeContent(java.io.OutputStream result)
                  throws java.io.IOException
Writes the content of this RtfTable

Specified by:
writeContent in interface RtfBasicElement
Specified by:
writeContent in class RtfElement
Parameters:
result - The OutputStream to write the content to
Throws:
java.io.IOException

getAlignment

protected int getAlignment()
Gets the alignment of this RtfTable

Returns:
The alignment of this RtfTable.

getBorders

protected RtfBorderGroup getBorders()
Gets the borders of this RtfTable

Returns:
The borders of this RtfTable.

getCellPadding

protected float getCellPadding()
Gets the cell padding of this RtfTable

Returns:
The cell padding of this RtfTable.

getCellSpacing

protected float getCellSpacing()
Gets the cell spacing of this RtfTable

Returns:
The cell spacing of this RtfTable.

getProportionalWidths

protected float[] getProportionalWidths()
Gets the proportional cell widths of this RtfTable

Returns:
The proportional widths of this RtfTable.

getTableWidthPercent

protected float getTableWidthPercent()
Gets the percentage of the page width this RtfTable covers

Returns:
The percentage of the page width.

getRows

protected java.util.ArrayList getRows()
Gets the rows of this RtfTable

Returns:
The rows of this RtfTable

getCellsFitToPage

protected boolean getCellsFitToPage()
Gets the cellsFitToPage setting of this RtfTable.

Returns:
The cellsFitToPage setting of this RtfTable.

getTableFitToPage

protected boolean getTableFitToPage()
Gets the tableFitToPage setting of this RtfTable.

Returns:
The tableFitToPage setting of this RtfTable.

getHeaderRows

protected int getHeaderRows()
Gets the number of header rows of this RtfTable

Returns:
The number of header rows


iText 2.1.7