Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/HistoricalDischargeWQCurveGenerator.java @ 8331:27d42c9ee367
Main values: Reduce code duplication and correct logic to specify whether we are at gauge or not.
author | "Tom Gottfried <tom@intevation.de>" |
---|---|
date | Fri, 26 Sep 2014 09:44:48 +0200 |
parents | e4606eae8ea5 |
children |
comparison
equal
deleted
inserted
replaced
8330:e87a993c6611 | 8331:27d42c9ee367 |
---|---|
134 } | 134 } |
135 else if (FacetTypes.IS.MANUALPOINTS(name)) { | 135 else if (FacetTypes.IS.MANUALPOINTS(name)) { |
136 doPoints(artifactFacet.getData(context), artifactFacet, theme, | 136 doPoints(artifactFacet.getData(context), artifactFacet, theme, |
137 visible, YAXIS.W.idx); | 137 visible, YAXIS.W.idx); |
138 } | 138 } |
139 else if (name.equals(MAINVALUES_W) || | 139 else if (name.equals(MAINVALUES_W) || name.equals(MAINVALUES_Q)) { |
140 name.equals(MAINVALUES_Q) || | |
141 HISTORICAL_DISCHARGE_MAINVALUES_Q.equals(name) || | |
142 HISTORICAL_DISCHARGE_MAINVALUES_W.equals(name)) { | |
143 doAnnotations((RiverAnnotation) | 140 doAnnotations((RiverAnnotation) |
144 artifactFacet.getData(context), artifactFacet, theme, visible); | 141 artifactFacet.getData(context), artifactFacet, theme, visible); |
145 } | 142 } |
146 else { | 143 else { |
147 log.warn("doOut(): unknown facet name: " + name); | 144 log.warn("doOut(): unknown facet name: " + name); |