# HG changeset patch # User Felix Wolfsteller # Date 1352390058 -3600 # Node ID 0968a35247ac7cb77a20acb6bcb28eb031223578 # Parent e7252480ded3cbabb16c983079a013bb8b65fd09 FlowVelocityGenerator: Dummy-handle new measured velocity facets. diff -r e7252480ded3 -r 0968a35247ac flys-artifacts/src/main/java/de/intevation/flys/exports/FlowVelocityGenerator.java --- 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.