BrightSide Workbench Full Report + Source Code
org.turro.financials.business.CompanyChartEngine Class Reference
Inheritance diagram for org.turro.financials.business.CompanyChartEngine:
Collaboration diagram for org.turro.financials.business.CompanyChartEngine:

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 CompanyChartEngine.java.

Member Function Documentation

◆ prepareJFreeChart()

boolean org.turro.financials.business.CompanyChartEngine.prepareJFreeChart ( JFreeChart  jfchart,
Chart  chart 
)

Definition at line 35 of file CompanyChartEngine.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(2));
41  renderer.setSeriesStroke(1, new BasicStroke(2));
42  renderer.setSeriesStroke(2, new BasicStroke(2));
43 
44  renderer.setSeriesShapesVisible(0, Boolean.TRUE);
45  renderer.setSeriesShapesVisible(1, Boolean.TRUE);
46  renderer.setSeriesShapesVisible(2, Boolean.TRUE);
47  }
48 
49  return false;
50  }

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