01: package com.technoetic.xplanner.charts;
02:
03: import org.jfree.chart.JFreeChart;
04: import org.jfree.chart.plot.CategoryPlot;
05: import org.jfree.chart.renderer.LineAndShapeRenderer;
06: import de.laures.cewolf.ChartPostProcessor;
07:
08: import java.util.Map;
09:
10: /**
11: * Post processor which is used to add shapes to the datapoints of a line graph.
12: */
13: public class CategoryPostProcessor implements ChartPostProcessor {
14: public void processChart(Object chart, Map params) {
15: CategoryPlot plot = (CategoryPlot) ((JFreeChart) chart)
16: .getPlot();
17: plot.setRenderer(new LineAndShapeRenderer());
18: }
19: }
|