changeset 4545:bb8b1c182913

New doOut for total load in sediment load calculation.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 15 Nov 2012 17:38:48 +0100
parents 3ad726e29460
children af1938d4e957
files flys-artifacts/src/main/java/de/intevation/flys/exports/minfo/SedimentLoadLSGenerator.java
diffstat 1 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/minfo/SedimentLoadLSGenerator.java	Thu Nov 15 17:37:40 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/minfo/SedimentLoadLSGenerator.java	Thu Nov 15 17:38:48 2012 +0100
@@ -121,6 +121,13 @@
                 attr,
                 visible);
         }
+        else if (name.equals(SEDIMENT_LOAD_TOTAL_LOAD)) {
+            doSedimentLoadTotalLoadOut(
+                (SedimentLoadResult) bundle.getData(context),
+                bundle,
+                attr,
+                visible);
+        }
         else if (name.equals(SEDIMENT_LOAD_TOTAL)) {
             doSedimentLoadTotalOut(
                 (SedimentLoadResult) bundle.getData(context),
@@ -216,6 +223,15 @@
         addAxisSeries(series, YAXIS.L.idx, visible);
     }
 
+    protected void doSedimentLoadTotalLoadOut(SedimentLoadResult data,
+        ArtifactAndFacet aandf, Document theme, boolean visible) {
+
+        XYSeries series = new StyledXYSeries(aandf.getFacetDescription(), theme);
+        StyledSeriesBuilder.addPoints(series, data.getTotalLoadData(), true);
+
+        addAxisSeries(series, YAXIS.L.idx, visible);
+    }
+
     protected void doSedimentLoadTotalOut(SedimentLoadResult data,
         ArtifactAndFacet aandf, Document theme, boolean visible) {
 

http://dive4elements.wald.intevation.org