19 package org.turro.financials.business;
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(2));
41 renderer.setSeriesStroke(1,
new BasicStroke(2));
42 renderer.setSeriesStroke(2,
new BasicStroke(2));
44 renderer.setSeriesShapesVisible(0, Boolean.TRUE);
45 renderer.setSeriesShapesVisible(1, Boolean.TRUE);
46 renderer.setSeriesShapesVisible(2, Boolean.TRUE);
boolean prepareJFreeChart(JFreeChart jfchart, Chart chart)