Author: manaRH
Date: 2009-11-18 18:17:00 -0500 (Wed, 18 Nov 2009)
New Revision: 11640
Modified:
branches/enterprise/JBPAPP_4_3_FP01/src/pdf/org/jboss/seam/pdf/ui/UICategoryChartBase.java
branches/enterprise/JBPAPP_4_3_FP01/src/pdf/org/jboss/seam/pdf/ui/UIChartSeries.java
branches/enterprise/JBPAPP_4_3_FP01/src/pdf/org/jboss/seam/pdf/ui/UISwingComponent.java
Log:
JBPAPP-3101
Modified:
branches/enterprise/JBPAPP_4_3_FP01/src/pdf/org/jboss/seam/pdf/ui/UICategoryChartBase.java
===================================================================
---
branches/enterprise/JBPAPP_4_3_FP01/src/pdf/org/jboss/seam/pdf/ui/UICategoryChartBase.java 2009-11-16
22:48:19 UTC (rev 11639)
+++
branches/enterprise/JBPAPP_4_3_FP01/src/pdf/org/jboss/seam/pdf/ui/UICategoryChartBase.java 2009-11-18
23:17:00 UTC (rev 11640)
@@ -2,6 +2,8 @@
import javax.faces.context.FacesContext;
+import org.jboss.seam.log.Log;
+import org.jboss.seam.log.Logging;
import org.jfree.chart.plot.CategoryPlot;
import org.jfree.chart.plot.Plot;
import org.jfree.chart.renderer.category.CategoryItemRenderer;
@@ -11,6 +13,9 @@
public abstract class UICategoryChartBase
extends UIChart
{
+
+ private static Log log = Logging.getLog(UICategoryChartBase.class);
+
private String orientation;
private boolean legend;
@@ -240,7 +245,7 @@
if (plot instanceof CategoryPlot) {
configurePlot((CategoryPlot) plot);
} else {
- System.out.println("UICATEGORYCHART --- unknown plot " + plot);
+ log.error("UICATEGORYCHART --- unknown plot " + plot);
}
}
Modified:
branches/enterprise/JBPAPP_4_3_FP01/src/pdf/org/jboss/seam/pdf/ui/UIChartSeries.java
===================================================================
---
branches/enterprise/JBPAPP_4_3_FP01/src/pdf/org/jboss/seam/pdf/ui/UIChartSeries.java 2009-11-16
22:48:19 UTC (rev 11639)
+++
branches/enterprise/JBPAPP_4_3_FP01/src/pdf/org/jboss/seam/pdf/ui/UIChartSeries.java 2009-11-18
23:17:00 UTC (rev 11640)
@@ -4,6 +4,8 @@
import javax.faces.context.FacesContext;
+import org.jboss.seam.log.Log;
+import org.jboss.seam.log.Logging;
import org.jfree.chart.plot.CategoryPlot;
import org.jfree.chart.plot.Plot;
import org.jfree.chart.renderer.AbstractRenderer;
@@ -14,6 +16,8 @@
public class UIChartSeries
extends ITextComponent
{
+ private static Log log = Logging.getLog(UIChartSeries.class);
+
private String key;
private String seriesPaint;
private String seriesFillPaint;
@@ -140,7 +144,7 @@
if (renderer instanceof AbstractRenderer) {
configureSeries((AbstractRenderer) renderer,seriesIndex);
} else {
- System.out.println("render is not AbtractRenderer" +
renderer);
+ log.error("render is not AbtractRenderer" + renderer);
}
}
}
Modified:
branches/enterprise/JBPAPP_4_3_FP01/src/pdf/org/jboss/seam/pdf/ui/UISwingComponent.java
===================================================================
---
branches/enterprise/JBPAPP_4_3_FP01/src/pdf/org/jboss/seam/pdf/ui/UISwingComponent.java 2009-11-16
22:48:19 UTC (rev 11639)
+++
branches/enterprise/JBPAPP_4_3_FP01/src/pdf/org/jboss/seam/pdf/ui/UISwingComponent.java 2009-11-18
23:17:00 UTC (rev 11640)
@@ -25,16 +25,16 @@
throw new RuntimeException("Component was null");
}
- System.out.println("component is " + component + " " +
- component.getWidth() + "x" + component.getHeight());
+// 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());
+// System.out.println("component is " + component + " " +
+// component.getWidth() + "x" + component.getHeight());
component.paint(g2);
- System.out.println("g2=" + g2);
+// System.out.println("g2=" + g2);
}
}
Show replies by date