# HG changeset patch # User Raimund Renkert # Date 1345712991 0 # Node ID a74bdd032cf76002b8b0001410688b43fb1a41b4 # Parent 66f539df4e8b036313d345be1b5a6cb9a2e7c19a FixA: Changed sector average form point to line in delta W(t) chart. flys-artifacts/trunk@5240 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 66f539df4e8b -r a74bdd032cf7 flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Thu Aug 23 08:49:37 2012 +0000 +++ b/flys-artifacts/ChangeLog Thu Aug 23 09:09:51 2012 +0000 @@ -1,3 +1,14 @@ +2012-08-23 Raimund Renkert + + FixA: Changed sector average form point to line in delta W(t) chart. + + * src/main/java/de/intevation/flys/exports/fixings/FixDeltaWtGenerator.java: + Add data points for sector average and changed time unit for analysis period + from month to day. + + * doc/conf/default-themes.xml: + Changed theme for sector average to color line. + 2012-08-23 Raimund Renkert Issue 716. FixA: Spilt reference and analysis period themes into one theme for each event. diff -r 66f539df4e8b -r a74bdd032cf7 flys-artifacts/doc/conf/default-themes.xml --- a/flys-artifacts/doc/conf/default-themes.xml Thu Aug 23 08:49:37 2012 +0000 +++ b/flys-artifacts/doc/conf/default-themes.xml Thu Aug 23 09:09:51 2012 +0000 @@ -1259,53 +1259,45 @@ - + - - - + - - - + - - - + - - diff -r 66f539df4e8b -r a74bdd032cf7 flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixDeltaWtGenerator.java --- a/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixDeltaWtGenerator.java Thu Aug 23 08:49:37 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixDeltaWtGenerator.java Thu Aug 23 09:09:51 2012 +0000 @@ -31,7 +31,6 @@ import org.apache.log4j.Logger; import org.jfree.chart.annotations.XYTextAnnotation; import org.jfree.data.time.Day; -import org.jfree.data.time.Month; import org.jfree.data.time.RegularTimePeriod; import org.jfree.data.time.TimeSeries; import org.jfree.data.time.TimeSeriesCollection; @@ -228,19 +227,17 @@ } RegularTimePeriod rtp = new Day(qwd.qwd.getDate()); double value = qwd.qwd.getDeltaW(); - /* + // Draw a line spanning the analysis time. series.add(rtp, value); rtp = new Day(qwd.dateRange.getFrom()); - series.add(rtp, value); + series.addOrUpdate(rtp, value); rtp = new Day(qwd.dateRange.getTo()); - series.add(rtp, value); - */ + series.addOrUpdate(rtp, value); tsc.addSeries(series); addAxisDataset(tsc, 0, visible); - addAttribute(desc, "outline"); Map annoIdxMap = new HashMap(); annoIdxMap.put (0, new int[]{0,0}); doQWDTextAnnotations(annoIdxMap, tsc, qwd.qwd, theme, visible); @@ -390,8 +387,8 @@ } for (int i = 0; i < ranges.length; i++) { logger.debug("creating domain marker"); - RegularTimePeriod start = new Month(ranges[i].getFrom()); - RegularTimePeriod end = new Month(ranges[i].getTo()); + RegularTimePeriod start = new Day(ranges[i].getFrom()); + RegularTimePeriod end = new Day(ranges[i].getTo()); StyledDomainMarker marker = new StyledDomainMarker(start.getMiddleMillisecond(), end.getMiddleMillisecond(), theme);