You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
// creating the report message and adding it to the final report message
message = seriesName[i] +" had a value in year " + series.get(i).xDelimitation.get(j) + " of "+ series.get(i).getValues().get(j)+"\n";
finalMessage.append(message);
}
if (isEmpty){
//Throw an exception if no data for the selected years
throw new DataProcessorException("No Data For The Selected Years");
}
// adding the series to their collections
xySeriesCollection.addSeries(xyseries);
scatterSeriesCollection.addSeries(scatterseries);
timeSeriesCollection.addSeries(timeseries);
barSeriesCollection.addSeries(barseries);
// adding the collections to their appropriate arraylist
xySeriesList.add(xySeriesCollection);
scatterSeriesList.add(scatterSeriesCollection);
timeSeriesList.add(timeSeriesCollection);
barSeriesList.add(barSeriesCollection);
}
// the options for the dropdown
String[] viewerTypes = {
"Line Chart",
"Scatter Plot",
"Bar Chart",
"Time Series",
"Report"
};
// the axis labels
String[] axis={
"(metric tonper capita)",
"(kg per capita)",
"(micrograms per cubic meter)"
};
// calling the Analysis class to compute the data into viewers
strategyOne = new Analysis(root,method,axis,analysisNames,viewerTypes,finalMessage.toString(),timeSeriesList,scatterSeriesList,barSeriesList,xySeriesList);
}
/***
* getter method for analysis
* @return the analysis object
*/
public Analysis getAnalysis() {
return strategyOne;
}
/***
* getter method for the boolean array that checks if the graph is already in the viewer