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

Public Member Functions

 DWWebChart (IConstructor constructor)
 
- Public Member Functions inherited from org.turro.charts.Chart
 Chart (IConstructor constructor)
 
ArrayList< SeriesgetSeries ()
 
Series addSeries (String name)
 
String getPieData ()
 
String getLineData ()
 
String parsePie (String identifier)
 
String parseLine (String identifier)
 
String parsePie (String identifier, String title)
 
String parseLine (String identifier, String title)
 

Protected Member Functions

void setData (String title, List< Object[]> list)
 
void onCreate (Data data, Object[] pars)
 
- Protected Member Functions inherited from org.turro.charts.Chart
void loadData ()
 

Additional Inherited Members

- Protected Attributes inherited from org.turro.charts.Chart
IConstructor constructor
 
ArrayList< Seriesseries
 

Detailed Description

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

Definition at line 32 of file DWWebChart.java.

Constructor & Destructor Documentation

◆ DWWebChart()

org.turro.dossier.dw.DWWebChart.DWWebChart ( IConstructor  constructor)

Definition at line 34 of file DWWebChart.java.

34  {
35  super(constructor);
36  }
IConstructor constructor
Definition: Chart.java:32

Member Function Documentation

◆ onCreate()

void org.turro.dossier.dw.DWWebChart.onCreate ( Data  data,
Object[]  pars 
)
protected

Definition at line 57 of file DWWebChart.java.

57 {}
Here is the caller graph for this function:

◆ setData()

void org.turro.dossier.dw.DWWebChart.setData ( String  title,
List< Object[]>  list 
)
protected

Definition at line 38 of file DWWebChart.java.

38  {
39  Series s = addSeries(title);
40  for(Object[] obj : list) {
41  if(obj[0] instanceof Enum) {
42  Data data = s.addData(I_.byKey(((Enum) obj[0]).toString()));
43  onCreate(data, obj);
44  for(int i = 1; i < obj.length; i++) {
45  data.addValue(((Number) obj[i]).doubleValue());
46  }
47  } else {
48  Data data = s.addData(I_.byKey((String) obj[0]));
49  onCreate(data, obj);
50  for(int i = 1; i < obj.length; i++) {
51  data.addValue(((Number) obj[i]).doubleValue());
52  }
53  }
54  }
55  }
Series addSeries(String name)
Definition: Chart.java:44
void onCreate(Data data, Object[] pars)
Definition: DWWebChart.java:57
Here is the call graph for this function:

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