ContiguousDaysLine<EffortDuration> orderOverload = resourceLoadCalculator
.getOrderOverload();
ContiguousDaysLine<EffortDuration> allOverload = resourceLoadCalculator
.getAllOverload();
Plotinfo plotOrderLoad = createPlotinfoFromDurations(
groupAsNeededByZoom(toSortedMap(ContiguousDaysLine.min(
orderLoad, maxCapacityOnResources))), interval);
Plotinfo plotOtherLoad = createPlotinfoFromDurations(
groupAsNeededByZoom(toSortedMap(min(allLoad,
maxCapacityOnResources))), interval);
Plotinfo plotMaxCapacity = createPlotinfoFromDurations(
groupAsNeededByZoom(toSortedMap(maxCapacityOnResources)),
interval);
Plotinfo plotOrderOverload = createPlotinfoFromDurations(
groupAsNeededByZoom(toSortedMap(sum(orderOverload,
maxCapacityOnResources))), interval);
Plotinfo plotOtherOverload = createPlotinfoFromDurations(
groupAsNeededByZoom(toSortedMap(sum(allOverload,
maxCapacityOnResources))), interval);
plotOrderLoad.setFillColor(COLOR_ASSIGNED_LOAD);
plotOrderLoad.setLineWidth(0);
plotOtherLoad.setFillColor(COLOR_ASSIGNED_LOAD_GLOBAL);
plotOtherLoad.setLineWidth(0);
plotMaxCapacity.setLineColor(COLOR_CAPABILITY_LINE);
plotMaxCapacity.setFillColor("#FFFFFF");
plotMaxCapacity.setLineWidth(2);
plotOrderOverload.setFillColor(COLOR_OVERLOAD);
plotOrderOverload.setLineWidth(0);
plotOtherOverload.setFillColor(COLOR_OVERLOAD_GLOBAL);
plotOtherOverload.setLineWidth(0);
return new Plotinfo[] { plotOtherOverload, plotOrderOverload,
plotMaxCapacity, plotOtherLoad, plotOrderLoad };
}