com.lowagie.text.pdf
public class PdfPRow extends Object
Field Summary | |
---|---|
static float | BOTTOM_LIMIT the bottom limit (bottom right y) |
protected boolean | calculated |
int[] | canvasesPos |
protected PdfPCell[] | cells |
protected float[] | extraHeights
extra heights that needs to be added to a cell because of rowspans. |
protected float | maxHeight |
static float | RIGHT_LIMIT
the right limit |
protected float[] | widths |
Constructor Summary | |
---|---|
PdfPRow(PdfPCell[] cells)
Constructs a new PdfPRow with the cells in the array that was passed
as a parameter.
| |
PdfPRow(PdfPRow row)
Makes a copy of an existing row.
|
Method Summary | |
---|---|
float | calculateHeights()
Calculates the heights of each cell in the row.
|
PdfPCell[] | getCells()
Returns the array of cells in the row.
|
float[] | getEventWidth(float xPos) |
float | getMaxHeights()
Gets the maximum height of the row (i.e. of the 'highest' cell).
|
void | initExtraHeights()
Initializes the extra heights array. |
boolean | isCalculated()
Checks if the dimensions of the columns were calculated.
|
protected void | restoreCanvases(PdfContentByte[] canvases) |
protected void | saveAndRotateCanvases(PdfContentByte[] canvases, float a, float b, float c, float d, float e, float f) |
static float | setColumn(ColumnText ct, float left, float bottom, float right, float top) |
void | setExtraHeight(int cell, float height)
Sets an extra height for a cell. |
void | setMaxHeights(float maxHeight)
Changes the maximum height of the row (to make it higher).
(added by Jin-Hsia Yang)
|
boolean | setWidths(float[] widths)
Sets the widths of the columns in the row.
|
PdfPRow | splitRow(PdfPTable table, int rowIndex, float new_height)
Splits a row to newHeight.
|
void | writeBorderAndBackground(float xPos, float yPos, float currentMaxHeight, PdfPCell cell, PdfContentByte[] canvases)
Writes the border and background of one cell in the row.
|
void | writeCells(int colStart, int colEnd, float xPos, float yPos, PdfContentByte[] canvases)
Writes a number of cells (not necessarily all cells).
|
Since: 2.1.6
Since: 2.1.5
Parameters: cells
Parameters: row
Returns: the maximum height of the row.
Returns: an array of cells
Since: 2.1.1
Returns: the maximum height of the row
Since: 2.1.6
Returns: true if the dimensions of the columns were calculated
Since: 2.1.6 private is now protected
Since: 2.1.6 private is now protected
Since: 3.0.0 protected is now public static
Parameters: cell the index of the cell that needs an extra height height the extra height
Since: 2.1.6
Parameters: maxHeight the new maximum height
Parameters: widths
Returns: true if everything went right
Parameters: new_height the new height
Returns: the remainder row or null if the newHeight was so small that only an empty row would result
Parameters: xPos The x-coordinate where the table starts on the canvas yPos The y-coordinate where the table starts on the canvas currentMaxHeight The height of the cell to be drawn. cell canvases
Since: 2.1.6 extra parameter currentMaxHeight
Parameters: colStart The first column to be written. Remember that the column index starts with 0. colEnd The last column to be written. Remember that the column index starts with 0. If -1, all the columns to the end are written. xPos The x-coordinate where the table starts on the canvas yPos The y-coordinate where the table starts on the canvas