01: package com.technoetic.xplanner.charts;
02:
03: import org.jfree.chart.JFreeChart;
04: import org.jfree.chart.plot.PiePlot;
05: import de.laures.cewolf.ChartPostProcessor;
06:
07: import java.awt.*;
08: import java.util.Map;
09:
10: /**
11: * Post processor which is used change the border colour of a pie chart.
12: */
13: public class BorderPostProcessor implements ChartPostProcessor {
14: public void processChart(Object chart, Map params) {
15: PiePlot plot = (PiePlot) ((JFreeChart) chart).getPlot();
16: plot.setOutlinePaint(Color.WHITE);
17: }
18: }
|