comparison flys-artifacts/src/main/java/de/intevation/flys/exports/FlowVelocityGenerator.java @ 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 32a4ed054fc7
comparison
equal deleted inserted replaced
4457:e7252480ded3 4458:0968a35247ac
235 (FLYSAnnotation) artifactAndFacet.getData(context), 235 (FLYSAnnotation) artifactAndFacet.getData(context),
236 artifactAndFacet, 236 artifactAndFacet,
237 attr, 237 attr,
238 visible); 238 visible);
239 } 239 }
240 else if (name.equals(FLOW_VELOCITY_MEASUREMENT)) {
241 doVPointOut(
242 artifactAndFacet.getData(context),
243 artifactAndFacet,
244 attr,
245 visible);
246 }
240 else { 247 else {
241 logger.warn("Unknown facet name: " + name); 248 logger.warn("Unknown facet name: " + name);
242 return; 249 return;
243 } 250 }
244 } 251 }
267 StyledSeriesBuilder.addPoints(series, data.getMainChannelPoints(), true); 274 StyledSeriesBuilder.addPoints(series, data.getMainChannelPoints(), true);
268 275
269 addAxisSeries(series, YAXIS.V.idx, visible); 276 addAxisSeries(series, YAXIS.V.idx, visible);
270 } 277 }
271 278
279 protected void doVPointOut (
280 Object data,
281 ArtifactAndFacet aandf,
282 Document theme,
283 boolean visible
284 ) {
285 logger.debug("FlowVelocityGenerator.doVPointOut");
286
287 XYSeries series = new StyledXYSeries(aandf.getFacetDescription(), theme);
288
289 StyledSeriesBuilder.addPoints(series, new double[][] {{10},{10}}, true);
290
291 addAxisSeries(series, YAXIS.V.idx, visible);
292 }
293
272 294
273 /** 295 /**
274 * Add items to dataseries which describes the differences. 296 * Add items to dataseries which describes the differences.
275 */ 297 */
276 protected void doTotalChannelOut( 298 protected void doTotalChannelOut(

http://dive4elements.wald.intevation.org