[seam-commits] Seam SVN: r9828 - trunk/src/pdf/org/jboss/seam/pdf/ui.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon Dec 22 18:18:43 EST 2008


Author: norman.richards at jboss.com
Date: 2008-12-22 18:18:43 -0500 (Mon, 22 Dec 2008)
New Revision: 9828

Modified:
   trunk/src/pdf/org/jboss/seam/pdf/ui/UICategoryChartBase.java
   trunk/src/pdf/org/jboss/seam/pdf/ui/UIChartSeries.java
   trunk/src/pdf/org/jboss/seam/pdf/ui/UISwingComponent.java
Log:
more logging fixes

Modified: trunk/src/pdf/org/jboss/seam/pdf/ui/UICategoryChartBase.java
===================================================================
--- trunk/src/pdf/org/jboss/seam/pdf/ui/UICategoryChartBase.java	2008-12-22 23:11:30 UTC (rev 9827)
+++ trunk/src/pdf/org/jboss/seam/pdf/ui/UICategoryChartBase.java	2008-12-22 23:18:43 UTC (rev 9828)
@@ -2,6 +2,8 @@
 
 import javax.faces.context.FacesContext;
 
+import org.jboss.seam.log.*;
+
 import org.jfree.chart.block.BlockBorder;
 import org.jfree.chart.plot.CategoryPlot;
 import org.jfree.chart.plot.Plot;
@@ -11,6 +13,8 @@
 
 public abstract class UICategoryChartBase extends UIChart
 {
+   private static Log log = Logging.getLog(UICategoryChartBase.class);
+
    private String orientation;
 
    private boolean legend;
@@ -290,7 +294,7 @@
       }
       else
       {
-         System.out.println("UICATEGORYCHART --- unknown plot " + plot);
+	  log.error("UICATEGORYCHART --- unknown plot " + plot);
       }
    }
 

Modified: trunk/src/pdf/org/jboss/seam/pdf/ui/UIChartSeries.java
===================================================================
--- trunk/src/pdf/org/jboss/seam/pdf/ui/UIChartSeries.java	2008-12-22 23:11:30 UTC (rev 9827)
+++ trunk/src/pdf/org/jboss/seam/pdf/ui/UIChartSeries.java	2008-12-22 23:18:43 UTC (rev 9828)
@@ -4,6 +4,8 @@
 
 import javax.faces.context.FacesContext;
 
+import org.jboss.seam.log.*;
+
 import org.jfree.chart.plot.CategoryPlot;
 import org.jfree.chart.plot.Plot;
 import org.jfree.chart.renderer.AbstractRenderer;
@@ -13,6 +15,8 @@
 
 public class UIChartSeries extends ITextComponent
 {
+   private static Log log = Logging.getLog(UIChartSeries.class);
+
    private String key;
    private String seriesPaint;
    private String seriesFillPaint;
@@ -159,7 +163,7 @@
             }
             else
             {
-               System.out.println("render is not AbtractRenderer" + renderer);
+               log.error("render is not AbtractRenderer" + renderer);
             }
          }
       }

Modified: trunk/src/pdf/org/jboss/seam/pdf/ui/UISwingComponent.java
===================================================================
--- trunk/src/pdf/org/jboss/seam/pdf/ui/UISwingComponent.java	2008-12-22 23:11:30 UTC (rev 9827)
+++ trunk/src/pdf/org/jboss/seam/pdf/ui/UISwingComponent.java	2008-12-22 23:18:43 UTC (rev 9828)
@@ -29,14 +29,11 @@
          throw new RuntimeException("Component was null");
       }
 
-      System.out.println("component is " + component + " " + component.getWidth() + "x" + component.getHeight());
       // setSize() is very important. The default size
       // for this component is zero, which means it will not display
       // unless the size is set
       component.setSize(getWidth(), getHeight());
 
-      System.out.println("component is " + component + " " + component.getWidth() + "x" + component.getHeight());
       component.paint(g2);
-      System.out.println("g2=" + g2);
    }
 }




More information about the seam-commits mailing list