Skip to content

Commit 137ef43

Browse files
author
Open Lowcode SAS
committed
Formatting, and removed code with warning
1 parent 14c725e commit 137ef43

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/org/openlowcode/tools/pdf/PDFMultiPageTable.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ public void addOneLineContent(String[] linecontent) {
211211
}
212212

213213
/**
214+
* Creates a new line without content. Content can then be added by setCellContent
214215
*/
215216
public void addBlankLine() {
216217
CellText[] blankline = new CellText[columnnumber];
@@ -219,6 +220,11 @@ public void addBlankLine() {
219220
this.cellscontent.add(blankline);
220221
}
221222

223+
/**
224+
* @param cellcontent text to include in the cell
225+
* @param columnindex index of the column, starting with zero
226+
* @param showasnumber if true, will display as right aligned constant space number
227+
*/
222228
public void setCellContent(String cellcontent, int columnindex, boolean showasnumber) {
223229
if (this.cellscontent.size() == 0)
224230
this.addBlankLine();
@@ -271,7 +277,6 @@ private float getLineHeight(float leftinmm, float rightinmm, int lineindex) thro
271277

272278
for (int i = 0; i < this.columnnumber; i++) {
273279
float columnwidth = this.columnwidthinmm[i];
274-
String text = this.cellscontent.get(lineindex)[i].text;
275280
float cellheight = getCellHeight(columnwidth, lineindex, i);
276281
if (cellheight > maxheight)
277282
maxheight = cellheight;

0 commit comments

Comments
 (0)