19 package org.turro.dossier.dw;
21 import java.awt.BasicStroke;
22 import org.jfree.chart.JFreeChart;
23 import org.jfree.chart.plot.CategoryPlot;
24 import org.jfree.chart.renderer.category.LineAndShapeRenderer;
25 import org.zkoss.zkex.zul.impl.JFreeChartEngine;
26 import org.zkoss.zul.Chart;
37 if(chart.getType().equals(
Chart.LINE)) {
38 LineAndShapeRenderer renderer = (LineAndShapeRenderer) ((CategoryPlot) jfchart.getPlot()).getRenderer();
40 renderer.setSeriesStroke(0,
new BasicStroke(3));
41 renderer.setSeriesStroke(1,
new BasicStroke(3));
42 renderer.setSeriesStroke(2,
new BasicStroke(3));
43 renderer.setSeriesStroke(3,
new BasicStroke(3));
44 renderer.setSeriesStroke(4,
new BasicStroke(3));
45 renderer.setSeriesStroke(5,
new BasicStroke(3));
46 renderer.setSeriesStroke(6,
new BasicStroke(3));
47 renderer.setSeriesStroke(7,
new BasicStroke(3));
48 renderer.setSeriesStroke(8,
new BasicStroke(3));
49 renderer.setSeriesStroke(9,
new BasicStroke(3));
51 renderer.setSeriesShapesVisible(0, Boolean.TRUE);
52 renderer.setSeriesShapesVisible(1, Boolean.TRUE);
53 renderer.setSeriesShapesVisible(2, Boolean.TRUE);
54 renderer.setSeriesShapesVisible(3, Boolean.TRUE);
55 renderer.setSeriesShapesVisible(4, Boolean.TRUE);
56 renderer.setSeriesShapesVisible(5, Boolean.TRUE);
57 renderer.setSeriesShapesVisible(6, Boolean.TRUE);
58 renderer.setSeriesShapesVisible(7, Boolean.TRUE);
59 renderer.setSeriesShapesVisible(8, Boolean.TRUE);
60 renderer.setSeriesShapesVisible(9, Boolean.TRUE);
boolean prepareJFreeChart(JFreeChart jfchart, Chart chart)