com.lowagie.text
public class SimpleTable extends Rectangle implements PdfPTableEvent, TextElementArray
Field Summary | |
---|---|
int | alignment the alignment of the table. |
float | cellpadding the padding of the Cells. |
float | cellspacing the spacing of the Cells. |
ArrayList | content the content of a Table. |
float | width the width of the Table. |
float | widthpercentage the widthpercentage of the Table. |
Constructor Summary | |
---|---|
SimpleTable()
A RectangleCell is always constructed without any dimensions.
|
Method Summary | |
---|---|
boolean | add(Object o) |
void | addElement(SimpleCell element)
Adds content to this object. |
PdfPTable | createPdfPTable()
Creates a PdfPTable object based on this TableAttributes object. |
Table | createTable()
Creates a Table object based on this TableAttributes object. |
int | getAlignment() |
float | getCellpadding() |
float | getCellspacing() |
static SimpleTable | getDimensionlessInstance(Rectangle rectangle, float spacing) |
float | getWidth() |
float | getWidthpercentage() |
void | setAlignment(int alignment) |
void | setCellpadding(float cellpadding) |
void | setCellspacing(float cellspacing) |
void | setWidth(float width) |
void | setWidthpercentage(float widthpercentage) |
void | tableLayout(PdfPTable table, float[][] widths, float[] heights, int headerRows, int rowStart, PdfContentByte[] canvases) |
int | type() |
See Also: TextElementArray
Parameters: element
Throws: BadElementException
Returns: a com.lowagie.text.pdf.PdfPTable object
Throws: DocumentException
Returns: a com.lowagie.text.Table object
Throws: BadElementException
Returns: Returns the alignment.
Returns: Returns the cellpadding.
Returns: Returns the cellspacing.
Parameters: rectangle spacing
Returns: a rectangle
Returns: Returns the width.
Returns: Returns the widthpercentage.
Parameters: alignment The alignment to set.
Parameters: cellpadding The cellpadding to set.
Parameters: cellspacing The cellspacing to set.
Parameters: width The width to set.
Parameters: widthpercentage The widthpercentage to set.
See Also: type