comparison flys-artifacts/src/main/java/de/intevation/flys/exports/DischargeLongitudinalSectionGenerator.java @ 1862:4cc21f0a470e

Handle Annotation Facets in DischargeLongitudinalSection diagrams. flys-artifacts/trunk@3211 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 10 Nov 2011 10:20:40 +0000
parents 7e19449d7826
children b1df3e64d8f5
comparison
equal deleted inserted replaced
1861:11c4b1429117 1862:4cc21f0a470e
12 12
13 import de.intevation.flys.artifacts.FLYSArtifact; 13 import de.intevation.flys.artifacts.FLYSArtifact;
14 import de.intevation.flys.artifacts.model.WQCKms; 14 import de.intevation.flys.artifacts.model.WQCKms;
15 import de.intevation.flys.artifacts.model.WQKms; 15 import de.intevation.flys.artifacts.model.WQKms;
16 16
17 import de.intevation.flys.jfree.FLYSAnnotation;
18
17 19
18 /** 20 /**
19 * An OutGenerator that generates discharge longitudinal section curves. 21 * An OutGenerator that generates discharge longitudinal section curves.
20 * 22 *
21 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> 23 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
23 public class DischargeLongitudinalSectionGenerator 25 public class DischargeLongitudinalSectionGenerator
24 extends LongitudinalSectionGenerator 26 extends LongitudinalSectionGenerator
25 { 27 {
26 private static Logger logger = 28 private static Logger logger =
27 Logger.getLogger(DischargeLongitudinalSectionGenerator.class); 29 Logger.getLogger(DischargeLongitudinalSectionGenerator.class);
28
29 30
30 31
31 public DischargeLongitudinalSectionGenerator() { 32 public DischargeLongitudinalSectionGenerator() {
32 super(); 33 super();
33 } 34 }
59 doWOut((WQKms) f.getData(artifact, context), facet, attr, visible); 60 doWOut((WQKms) f.getData(artifact, context), facet, attr, visible);
60 } 61 }
61 else if (name.equals(DISCHARGE_LONGITUDINAL_Q)) { 62 else if (name.equals(DISCHARGE_LONGITUDINAL_Q)) {
62 doQOut((WQKms) f.getData(artifact, context), facet, attr, visible); 63 doQOut((WQKms) f.getData(artifact, context), facet, attr, visible);
63 } 64 }
64 else if (name.equals(DISCHARGE_LONGITUDINAL_C)) { 65 else if (name.equals(LONGITUDINAL_ANNOTATION)) {
66 doAnnotations((FLYSAnnotation) f.getData(artifact, context),
67 facet, attr, visible);
68 }
69 if (name.equals(DISCHARGE_LONGITUDINAL_C)) {
65 doCorrectedWOut( 70 doCorrectedWOut(
66 (WQCKms) f.getData(artifact, context), 71 (WQCKms) f.getData(artifact, context),
67 facet, 72 facet,
68 attr, 73 attr,
69 visible); 74 visible);

http://dive4elements.wald.intevation.org