[Dive4elements-commits] [PATCH 3 of 6] New doOut for total load in sediment load calculation
Wald Commits
scm-commit at wald.intevation.org
Thu Nov 15 17:45:48 CET 2012
# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1352997528 -3600
# Node ID bb8b1c182913b3d648faed4a6c6b80855c5306b6
# Parent 3ad726e29460f19daa2ff625d964d4cf59688a13
New doOut for total load in sediment load calculation.
diff -r 3ad726e29460 -r bb8b1c182913 flys-artifacts/src/main/java/de/intevation/flys/exports/minfo/SedimentLoadLSGenerator.java
--- 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) {
More information about the Dive4elements-commits
mailing list