BrightSide Workbench Full Report + Source Code
org.turro.dossier.dw.DWChartEngine Class Reference
Inheritance diagram for org.turro.dossier.dw.DWChartEngine:
Collaboration diagram for org.turro.dossier.dw.DWChartEngine:

Public Member Functions

boolean prepareJFreeChart (JFreeChart jfchart, Chart chart)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 32 of file DWChartEngine.java.

Member Function Documentation

◆ prepareJFreeChart()

boolean org.turro.dossier.dw.DWChartEngine.prepareJFreeChart ( JFreeChart  jfchart,
Chart  chart 
)

Definition at line 35 of file DWChartEngine.java.

35  {
36 
37  if(chart.getType().equals(Chart.LINE)) {
38  LineAndShapeRenderer renderer = (LineAndShapeRenderer) ((CategoryPlot) jfchart.getPlot()).getRenderer();
39 
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));
50 
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);
61  }
62 
63  return false;
64  }

The documentation for this class was generated from the following file: