diff options
author | Vincent Hennebert <vhennebert@apache.org> | 2007-03-01 17:10:14 +0000 |
---|---|---|
committer | Vincent Hennebert <vhennebert@apache.org> | 2007-03-01 17:10:14 +0000 |
commit | 10a9fc480c2a7ac372fd68e47ac0fcffae1f3456 (patch) | |
tree | 6d636d9876f6518832c44823e4279f2d1c501919 /src | |
parent | 71971d11192875eef125aaac0e47bb7f460fa8a0 (diff) | |
download | xmlgraphics-fop-10a9fc480c2a7ac372fd68e47ac0fcffae1f3456.tar.gz xmlgraphics-fop-10a9fc480c2a7ac372fd68e47ac0fcffae1f3456.zip |
Small simplification: remove an unneeded parameter from the getContentHeight method
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@513407 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/table/TableCellLayoutManager.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/table/TableCellLayoutManager.java b/src/java/org/apache/fop/layoutmgr/table/TableCellLayoutManager.java index 8172edb50..223d80a7f 100644 --- a/src/java/org/apache/fop/layoutmgr/table/TableCellLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/table/TableCellLayoutManager.java @@ -315,7 +315,12 @@ public class TableCellLayoutManager extends BlockStackingLayoutManager rowHeight = h; } - private int getContentHeight(int rowHeight, GridUnit gu) { + /** + * Returns the bpd of the given grid unit. + * @param gu a grid unit belonging to this cell + * @return the content height of the grid unit + */ + private int getContentHeight(GridUnit gu) { int bpd = rowHeight; if (isSeparateBorderModel()) { bpd -= gu.getPrimary().getBorders().getBorderBeforeWidth(false); @@ -377,7 +382,7 @@ public class TableCellLayoutManager extends BlockStackingLayoutManager block.addTrait(Trait.IS_REFERENCE_AREA, Boolean.TRUE); block.setPositioning(Block.ABSOLUTE); - int bpd = getContentHeight(rowHeight, gu); + int bpd = getContentHeight(gu); if (isSeparateBorderModel()) { bpd += (gu.getBorders().getBorderBeforeWidth(false)); bpd += (gu.getBorders().getBorderAfterWidth(false)); @@ -412,7 +417,7 @@ public class TableCellLayoutManager extends BlockStackingLayoutManager } //Handle display-align - int contentBPD = getContentHeight(rowHeight, gridUnit); + int contentBPD = getContentHeight(gridUnit); if (usedBPD < contentBPD) { if (getTableCell().getDisplayAlign() == EN_CENTER) { Block space = new Block(); |