Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/process/MiscDischargeProcessor.java @ 8341:130160b8d245
Introduce annotations, which know to which axis they belong.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Tue, 30 Sep 2014 11:50:43 +0200 |
parents | 27d42c9ee367 |
children | 9f9857f6c464 |
comparison
equal
deleted
inserted
replaced
8340:8679875f2c09 | 8341:130160b8d245 |
---|---|
72 else if (data instanceof WQKms) { | 72 else if (data instanceof WQKms) { |
73 doWQKmsPointOut( | 73 doWQKmsPointOut( |
74 generator, (WQKms) data, bundle, theme, visible); | 74 generator, (WQKms) data, bundle, theme, visible); |
75 return; | 75 return; |
76 } | 76 } |
77 if (MAINVALUES_W.equals(bundle.getFacetName())) { | |
78 doYRiverAnnotationOut( | |
79 generator, (RiverAnnotation)data, theme, visible); | |
80 return; | |
81 } | |
77 else if (data instanceof RiverAnnotation) { | 82 else if (data instanceof RiverAnnotation) { |
78 doRiverAnnotationOut( | 83 doRiverAnnotationOut( |
79 generator, (RiverAnnotation)data, bundle, theme, visible); | 84 generator, (RiverAnnotation)data, theme, visible); |
80 return; | 85 return; |
81 } | 86 } |
82 else if (data instanceof double[][]) { | 87 else if (data instanceof double[][]) { |
83 doPointsOut(generator, (double[][])data, bundle, theme, visible); | 88 doPointsOut(generator, (double[][])data, bundle, theme, visible); |
84 } | 89 } |
328 } | 333 } |
329 | 334 |
330 log.warn("No WQ found for km " + getKm()); | 335 log.warn("No WQ found for km " + getKm()); |
331 } | 336 } |
332 | 337 |
338 protected void doYRiverAnnotationOut(DiagramGenerator generator, | |
339 RiverAnnotation annotations, | |
340 ThemeDocument theme, | |
341 boolean visible | |
342 ) { | |
343 if (visible) { | |
344 annotations.setTheme(theme); | |
345 generator.addYAnnotation(annotations, axisName); | |
346 } | |
347 } | |
348 | |
333 protected void doRiverAnnotationOut(DiagramGenerator generator, | 349 protected void doRiverAnnotationOut(DiagramGenerator generator, |
334 RiverAnnotation annotations, | 350 RiverAnnotation annotations, |
335 ArtifactAndFacet bundle, | |
336 ThemeDocument theme, | 351 ThemeDocument theme, |
337 boolean visible | 352 boolean visible |
338 ) { | 353 ) { |
339 if (visible) { | 354 if (visible) { |
340 annotations.setTheme(theme); | 355 annotations.setTheme(theme); |