changeset 4458:0968a35247ac

FlowVelocityGenerator: Dummy-handle new measured velocity facets.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 08 Nov 2012 16:54:18 +0100
parents e7252480ded3
children d83e021ff638
files flys-artifacts/src/main/java/de/intevation/flys/exports/FlowVelocityGenerator.java
diffstat 1 files changed, 22 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/FlowVelocityGenerator.java	Thu Nov 08 16:53:57 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/FlowVelocityGenerator.java	Thu Nov 08 16:54:18 2012 +0100
@@ -237,6 +237,13 @@
                  attr,
                  visible);
         }
+        else if (name.equals(FLOW_VELOCITY_MEASUREMENT)) {
+            doVPointOut(
+                 artifactAndFacet.getData(context),
+                 artifactAndFacet,
+                 attr,
+                 visible);
+        }
         else {
             logger.warn("Unknown facet name: " + name);
             return;
@@ -269,6 +276,21 @@
         addAxisSeries(series, YAXIS.V.idx, visible);
     }
 
+    protected void doVPointOut (
+        Object data,
+        ArtifactAndFacet aandf,
+        Document         theme,
+        boolean          visible
+    ) {
+        logger.debug("FlowVelocityGenerator.doVPointOut");
+
+        XYSeries series = new StyledXYSeries(aandf.getFacetDescription(), theme);
+
+        StyledSeriesBuilder.addPoints(series, new double[][] {{10},{10}}, true);
+
+        addAxisSeries(series, YAXIS.V.idx, visible);
+    }
+
 
     /**
      * Add items to dataseries which describes the differences.

http://dive4elements.wald.intevation.org