Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/FlowVelocityGenerator.java @ 4464:b66285ece774
For FlowV.-Artifacts, use given id, fetch data and display via facet and generator.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 09 Nov 2012 10:27:17 +0100 |
parents | 32a4ed054fc7 |
children | 2e8638567c49 |
comparison
equal
deleted
inserted
replaced
4463:3395f8c6b030 | 4464:b66285ece774 |
---|---|
11 | 11 |
12 import de.intevation.flys.artifacts.FLYSArtifact; | 12 import de.intevation.flys.artifacts.FLYSArtifact; |
13 | 13 |
14 import de.intevation.flys.artifacts.model.FacetTypes; | 14 import de.intevation.flys.artifacts.model.FacetTypes; |
15 import de.intevation.flys.artifacts.model.FlowVelocityData; | 15 import de.intevation.flys.artifacts.model.FlowVelocityData; |
16 import de.intevation.flys.model.FlowVelocityMeasurementValue; | |
16 | 17 |
17 import de.intevation.flys.jfree.FLYSAnnotation; | 18 import de.intevation.flys.jfree.FLYSAnnotation; |
18 import de.intevation.flys.jfree.StyledXYSeries; | 19 import de.intevation.flys.jfree.StyledXYSeries; |
19 | 20 |
20 import de.intevation.flys.utils.FLYSUtils; | 21 import de.intevation.flys.utils.FLYSUtils; |
272 StyledSeriesBuilder.addPoints(series, data.getMainChannelPoints(), true); | 273 StyledSeriesBuilder.addPoints(series, data.getMainChannelPoints(), true); |
273 | 274 |
274 addAxisSeries(series, YAXIS.V.idx, visible); | 275 addAxisSeries(series, YAXIS.V.idx, visible); |
275 } | 276 } |
276 | 277 |
278 | |
279 /** Handle VWQKms. */ | |
277 protected void doVPointOut ( | 280 protected void doVPointOut ( |
278 Object data, | 281 Object data, |
279 ArtifactAndFacet aandf, | 282 ArtifactAndFacet aandf, |
280 Document theme, | 283 Document theme, |
281 boolean visible | 284 boolean visible |
282 ) { | 285 ) { |
283 logger.debug("FlowVelocityGenerator.doVPointOut"); | 286 logger.debug("FlowVelocityGenerator.doVPointOut"); |
284 | 287 |
285 XYSeries series = new StyledXYSeries(aandf.getFacetDescription(), theme); | 288 XYSeries series = new StyledXYSeries(aandf.getFacetDescription(), theme); |
286 | 289 |
287 StyledSeriesBuilder.addPoints(series, new double[][] {{10},{10}}, true); | 290 FlowVelocityMeasurementValue.FastFlowVelocityMeasurementValue |
291 value = (FlowVelocityMeasurementValue.FastFlowVelocityMeasurementValue) | |
292 data; | |
293 | |
294 StyledSeriesBuilder.addPoints(series, new double[][] {{value.getStation()},{value.getV()}}, true); | |
288 | 295 |
289 addAxisSeries(series, YAXIS.V.idx, visible); | 296 addAxisSeries(series, YAXIS.V.idx, visible); |
290 } | 297 } |
291 | 298 |
292 | 299 |