ItEr49S04ValidacionEProbasFuncionaisItEr48S04: [Bug #373] Fixed bug. Using JustDaysWithInformationGraphicSpecificationCreator only for earned value chart and not for the load chart.

This commit is contained in:
Manuel Rego Casasnovas 2010-03-05 09:29:34 +01:00 committed by Javier Moran Rua
parent a0ca0d4d36
commit 8da563b358
3 changed files with 16 additions and 2 deletions

View file

@ -541,10 +541,21 @@ public abstract class ChartFiller implements IChartFiller {
@Override
public Plotinfo createPlotinfo(SortedMap<LocalDate, BigDecimal> map,
Interval interval) {
String uri = getServletUri(map, interval.getStart(), interval
return createPlotinfo(map, interval, false);
}
@Override
public Plotinfo createPlotinfo(SortedMap<LocalDate, BigDecimal> map,
Interval interval, boolean justDaysWithInformation) {
String uri;
if (justDaysWithInformation) {
uri = getServletUri(map, interval.getStart(), interval
.getFinish(),
new JustDaysWithInformationGraphicSpecificationCreator(interval
.getFinish(), map, interval.getStart()));
} else {
uri = getServletUri(map, interval.getStart(), interval.getFinish());
}
PlotDataSource pds = new PlotDataSource();
pds.setDataSourceUri(uri);

View file

@ -95,7 +95,7 @@ public abstract class EarnedValueChartFiller extends ChartFiller {
protected Plotinfo createPlotInfo(SortedMap<LocalDate, BigDecimal> map,
Interval interval, String lineColor) {
Plotinfo plotInfo = createPlotinfo(map, interval);
Plotinfo plotInfo = createPlotinfo(map, interval, true);
plotInfo.setLineColor(lineColor);
return plotInfo;
}

View file

@ -63,6 +63,9 @@ public interface IChartFiller {
Plotinfo createPlotinfo(SortedMap<LocalDate, BigDecimal> map,
Interval interval);
Plotinfo createPlotinfo(SortedMap<LocalDate, BigDecimal> map,
Interval interval, boolean justDaysWithInformation);
void appendPlotinfo(Timeplot chart, Plotinfo plotinfo, ValueGeometry valueGeometry,
TimeGeometry timeGeometry);