PdfTable(Table table,
float left,
float right,
float top) {
// constructs a Rectangle (the bottom value will be changed afterwards)
super(left, top, right, top);
this.table = table;
table.complete();
// copying the attributes from class Table
cloneNonPositionParameters(table);
this.columns = table.getColumns();
positions = table.getWidths(left, right - left);
// initialization of some parameters
setLeft(positions[0]);
setRight(positions[positions.length - 1]);
headercells = new ArrayList();
cells = new ArrayList();
updateRowAdditionsInternal();
}
Constructs a PdfTable-object. Parameters:
table - a Table
left - the left border on the page
right - the right border on the page
top - the start position of the top of the table
- since:
a - parameter of this method has been removed in iText 2.0.8
|