You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by vh...@apache.org on 2007/03/01 18:10:15 UTC

svn commit: r513407 - /xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/table/TableCellLayoutManager.java

Author: vhennebert
Date: Thu Mar  1 09:10:14 2007
New Revision: 513407

URL: http://svn.apache.org/viewvc?view=rev&rev=513407
Log:
Small simplification: remove an unneeded parameter from the getContentHeight method

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/table/TableCellLayoutManager.java

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/table/TableCellLayoutManager.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/table/TableCellLayoutManager.java?view=diff&rev=513407&r1=513406&r2=513407
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/table/TableCellLayoutManager.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/table/TableCellLayoutManager.java Thu Mar  1 09:10:14 2007
@@ -315,7 +315,12 @@
         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 @@
                         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 @@
         }
 
         //Handle display-align
-        int contentBPD = getContentHeight(rowHeight, gridUnit);
+        int contentBPD = getContentHeight(gridUnit);
         if (usedBPD < contentBPD) {
             if (getTableCell().getDisplayAlign() == EN_CENTER) {
                 Block space = new Block();



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org