xmlgraphics-fop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vhenneb...@apache.org
Subject svn commit: r512266 - /xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/table/TableStepper.java
Date Tue, 27 Feb 2007 14:50:56 GMT
Author: vhennebert
Date: Tue Feb 27 06:50:52 2007
New Revision: 512266

URL: http://svn.apache.org/viewvc?view=rev&rev=512266
Log:
Add log messages to help understand the code

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

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/table/TableStepper.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/table/TableStepper.java?view=diff&rev=512266&r1=512265&r2=512266
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/table/TableStepper.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/table/TableStepper.java Tue Feb
27 06:50:52 2007
@@ -192,7 +192,7 @@
         for (int i = activeRow + 1; i < rowGroup.length; i++) {
             maxW += rowGroup[i].getHeight().opt;
         }
-        //log.debug("maxRemainingHeight=" + maxW);
+        log.debug("maxRemainingHeight=" + maxW);
         return maxW;
     }
 
@@ -238,6 +238,7 @@
                 borderBefore[column] = pgu.getBorders().getBorderBeforeWidth(false);
             } else {
                 borderBefore[column] = pgu.getBorders().getBorderBeforeWidth(false) / 2;
+                log.trace("border before for column " + column + ": " + borderBefore[column]);
             }
             paddingBefore[column] = pgu.getBorders().getPaddingBefore(false, pgu.getCellLM());
             paddingAfter[column] = pgu.getBorders().getPaddingAfter(false, pgu.getCellLM());
@@ -247,6 +248,8 @@
             startRow[column] = activeRow;
             keepWithNextSignals[column] = false;
             forcedBreaks[column] = false;
+        } else {
+            log.trace("TableStepper.setupElementList: not empty nor primary grid unit");
         }
     }
     
@@ -541,8 +544,8 @@
                 }
             }
             if (log.isTraceEnabled()) {
-                log.trace("borders before=" + borderBefore[i] + " after=" + borderAfter[i]);
-                log.trace("padding before=" + paddingBefore[i] + " after=" + paddingAfter[i]);
+                log.trace("column " + i + ": borders before=" + borderBefore[i] + " after="
+ borderAfter[i]);
+                log.trace("column " + i + ": padding before=" + paddingBefore[i] + " after="
+ paddingAfter[i]);
             }
         }
         if (seqCount == 0) {
@@ -601,7 +604,7 @@
             }
         }
         if (log.isDebugEnabled()) {
-            /*StringBuffer*/ sb = new StringBuffer();
+            /*StringBuffer*/ sb = new StringBuffer("[col nb: start-end(width)] ");
             for (int i = 0; i < widths.length; i++) {
                 if (end[i] >= start[i]) {
                     sb.append(i + ": " + start[i] + "-" + end[i] + "(" + widths[i] + "),
");



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


Mime
View raw message