}
public CalculatedValues computeTrace(Iterator taskIterator, List resources, Object trace, boolean histogram, boolean cumulative) {
if (taskIterator == null || !taskIterator.hasNext()) // if no task selected, dont change chart
return null;
CalculatedValues calculatedValues;
if (histogram)
calculatedValues = new GroupedCalculatedValues();
else
calculatedValues = new NonGroupedCalculatedValues(cumulative,coord.getOrigin());