private TableLayoutManager tableLM;
private TableRowIterator trIter;
+ private int usedBPD;
public TableContentLayoutManager(TableLayoutManager parent) {
this.tableLM = parent;
}
public void addAreas(PositionIterator parentIter, LayoutContext layoutContext) {
+ this.usedBPD = 0;
int colCount = getColumns().getColumnCount();
TableRowIterator.EffRow lastRow = null;
int lastRowHeight = 0;
if (lastRow != tcpos.row && lastRow != null) {
//yoffset += lastRow.getHeight().opt;
yoffset += lastRowHeight;
+ this.usedBPD += lastRowHeight;
}
lastRow = tcpos.row;
Iterator iter = tcpos.gridUnitParts.iterator();
layoutContext, lastRow, yoffset, partLength[i], maxLen);
}
}
-
+ this.usedBPD += lastRowHeight; //for last row
}
private int getExplicitCellHeight(PrimaryGridUnit pgu) {
start, end + 1), layoutContext);
}
+ public int getUsedBPD() {
+ return this.usedBPD;
+ }
+
private class GridUnitPart {
protected PrimaryGridUnit pgu;