public class PdfPRow
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static float |
BOTTOM_LIMIT
the bottom limit (bottom right y)
|
protected boolean |
calculated |
private int[] |
canvasesPos |
protected PdfPCell[] |
cells |
protected float |
maxHeight |
protected float[] |
widths |
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
float |
calculateHeights()
Calculates the heights of each cell in the row.
|
(package private) float[] |
getEventWidth(float xPos) |
float |
getMaxHeights()
Gets the maximum height of the row (i.e.
|
boolean |
isCalculated()
Checks if the dimensions of the columns were calculated.
|
private void |
restoreCanvases(PdfContentByte[] canvases) |
private void |
saveAndRotateCanvases(PdfContentByte[] canvases,
float a,
float b,
float c,
float d,
float e,
float f) |
void |
setMaxHeights(float maxHeight)
Changes the maximum height of the row (to make it higher).
|
boolean |
setWidths(float[] widths)
Sets the widths of the columns in the row.
|
PdfPRow |
splitRow(float newHeight)
Splits a row to newHeight.
|
void |
writeBorderAndBackground(float xPos,
float yPos,
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).
|
public static final float BOTTOM_LIMIT
protected PdfPCell[] cells
protected float[] widths
protected float maxHeight
protected boolean calculated
private int[] canvasesPos
public PdfPRow(PdfPCell[] cells)
cells
- public PdfPRow(PdfPRow row)
row
- public boolean setWidths(float[] widths)
widths
- public float calculateHeights()
public void writeBorderAndBackground(float xPos, float yPos, PdfPCell cell, PdfContentByte[] canvases)
xPos
- yPos
- cell
- canvases
- private void saveAndRotateCanvases(PdfContentByte[] canvases, float a, float b, float c, float d, float e, float f)
private void restoreCanvases(PdfContentByte[] canvases)
public void writeCells(int colStart, int colEnd, float xPos, float yPos, PdfContentByte[] canvases)
colStart
- colEnd
- xPos
- yPos
- canvases
- public boolean isCalculated()
public float getMaxHeights()
public void setMaxHeights(float maxHeight)
maxHeight
- the new maximum heightfloat[] getEventWidth(float xPos)
public PdfPRow splitRow(float newHeight)
newHeight
- the new height