[seam-commits] Seam SVN: r9887 - trunk/src/pdf/org/jboss/seam/pdf/ui.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Wed Jan 7 12:40:53 EST 2009
Author: norman.richards at jboss.com
Date: 2009-01-07 12:40:53 -0500 (Wed, 07 Jan 2009)
New Revision: 9887
Modified:
trunk/src/pdf/org/jboss/seam/pdf/ui/UIChartSeries.java
Log:
JBSEAM-3785
Modified: trunk/src/pdf/org/jboss/seam/pdf/ui/UIChartSeries.java
===================================================================
--- trunk/src/pdf/org/jboss/seam/pdf/ui/UIChartSeries.java 2009-01-07 17:39:52 UTC (rev 9886)
+++ trunk/src/pdf/org/jboss/seam/pdf/ui/UIChartSeries.java 2009-01-07 17:40:53 UTC (rev 9887)
@@ -144,30 +144,26 @@
public void encodeEnd(FacesContext context) throws IOException
{
UIChart chart = (UIChart) findITextParent(getParent(), UIChart.class);
- Dataset dataset = chart.getDataset();
- if (chart != null)
- {
- Plot p = chart.getChart().getPlot();
- if (p instanceof CategoryPlot)
- {
- CategoryPlot plot = (CategoryPlot) p;
- int seriesIndex = ((CategoryDataset) dataset).getRowIndex(getKey());
+ if (chart != null) {
+ Dataset dataset = chart.getDataset();
+ Plot p = chart.getChart().getPlot();
- CategoryItemRenderer renderer = plot.getRenderer();
-
- // CategoryRenderer
- if (renderer instanceof AbstractRenderer)
- {
- configureSeries((AbstractRenderer) renderer, seriesIndex);
- }
- else
- {
- log.error("render is not AbtractRenderer" + renderer);
- }
- }
+ if (p instanceof CategoryPlot) {
+ CategoryPlot plot = (CategoryPlot) p;
+
+ int seriesIndex = ((CategoryDataset) dataset).getRowIndex(getKey());
+
+ CategoryItemRenderer renderer = plot.getRenderer();
+
+ // CategoryRenderer
+ if (renderer instanceof AbstractRenderer) {
+ configureSeries((AbstractRenderer) renderer, seriesIndex);
+ } else {
+ log.error("render is not AbtractRenderer" + renderer);
+ }
+ }
}
-
}
private void configureSeries(AbstractRenderer renderer, int seriesIndex)
More information about the seam-commits
mailing list