Mercurial > dive4elements > river
changeset 3132:459750878157
Adapt doAverageSectorOut() to reflect changes of corresponding facet.
flys-artifacts/trunk@4735 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Thu, 21 Jun 2012 09:03:43 +0000 |
parents | bac0b2721451 |
children | 6f6a8e5fb7a4 |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java |
diffstat | 2 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Wed Jun 20 16:10:59 2012 +0000 +++ b/flys-artifacts/ChangeLog Thu Jun 21 09:03:43 2012 +0000 @@ -1,3 +1,8 @@ +2012-06-21 Christian Lins <christian.lins@intevation.de> + + * src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java: + Adapt doAverageSectorOut() to reflect changes in Facet. + 2012-06-20 Raimund Renkert <raimund.renkert@intevation.de> Added delta W(t) chart in fix analysis.
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java Wed Jun 20 16:10:59 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java Thu Jun 21 09:03:43 2012 +0000 @@ -89,16 +89,11 @@ protected void doSectorAverageOut(ArtifactAndFacet aaf, Document doc, boolean visible) { logger.debug("doSectorAverageOut"); - QWD[] qwds = (QWD[])aaf.getData(context); + QWD qwd = (QWD)aaf.getData(context); - if(qwds != null) { + if(qwd != null) { XYSeries series = new StyledXYSeries(aaf.getFacetDescription(), doc); - for(QW qw : qwds) { - if(qw != null) { - series.add(qw.getQ(), qw.getW()); - } - } - + series.add(qwd.getQ(), qwd.getW()); addAxisSeries(series, 0, visible); } }