Mercurial > dive4elements > river
changeset 3151:08230c76cd92
FixA: KM chart helper service: Added debug output when creating Q sector markers.
flys-artifacts/trunk@4761 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sat, 23 Jun 2012 08:05:33 +0000 |
parents | 40147510e2d7 |
children | 368d1837ce5d |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeRange.java flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/FixingsKMChartService.java |
diffstat | 3 files changed, 26 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Fri Jun 22 15:04:09 2012 +0000 +++ b/flys-artifacts/ChangeLog Sat Jun 23 08:05:33 2012 +0000 @@ -1,3 +1,11 @@ +2012-06-23 Sascha L. Teichmann <sascha.teichmann@intevation.de> + + * src/main/java/de/intevation/flys/artifacts/services/FixingsKMChartService.java: + Added bug output when creating Q sector markers. + + * src/main/java/de/intevation/flys/artifacts/model/GaugeRange.java: + Added toString() method. + 2012-06-22 Felix Wolfsteller <felix.wolfsteller@intevation.de> * src/main/java/de/intevation/flys/exports/ChartGenerator.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeRange.java Fri Jun 22 15:04:09 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeRange.java Sat Jun 23 08:05:33 2012 +0000 @@ -94,5 +94,19 @@ } return sectors.size(); } + + public String toString() { + StringBuilder sb = new StringBuilder("sectors: ["); + + for (int i = 0, S = sectors.size(); i < S; ++i) { + if (i > 0) sb.append(", "); + Sector s = sectors.get(i); + sb.append(s.sector).append(": ").append(s.value);; + } + + sb.append("] mainvalues: ").append(mainValues); + + return sb.toString(); + } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/FixingsKMChartService.java Fri Jun 22 15:04:09 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/FixingsKMChartService.java Sat Jun 23 08:05:33 2012 +0000 @@ -269,6 +269,10 @@ return; } + if (log.isDebugEnabled()) { + log.debug(gr); + } + for (int i = 0; i < Q_SECTOR_LABELS.length; ++i) { Marker m = createQSectorMarker( gr.getSectorBorder(i),