]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Add log messages to help understand the code
authorVincent Hennebert <vhennebert@apache.org>
Tue, 27 Feb 2007 14:50:52 +0000 (14:50 +0000)
committerVincent Hennebert <vhennebert@apache.org>
Tue, 27 Feb 2007 14:50:52 +0000 (14:50 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@512266 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/table/TableStepper.java

index b8e34ba63d6d37d1e076d4773f4749b7eb2eed30..2b36fe7a6c9244d43fcca4bf71cea0ee504d229a 100644 (file)
@@ -192,7 +192,7 @@ public class TableStepper {
         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 @@ public class TableStepper {
                 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 @@ public class TableStepper {
             startRow[column] = activeRow;
             keepWithNextSignals[column] = false;
             forcedBreaks[column] = false;
+        } else {
+            log.trace("TableStepper.setupElementList: not empty nor primary grid unit");
         }
     }
     
@@ -541,8 +544,8 @@ public class TableStepper {
                 }
             }
             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 @@ public class TableStepper {
             }
         }
         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] + "), ");