Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/HistoricalDischargeCurveGenerator.java @ 7902:a7b218447e12
Potential fix for flys/issue1717: Draw manuel points on W or Q axis depending on the calculation.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Mon, 26 May 2014 17:00:28 +0200 |
parents | 1b35b2ddfc28 |
children | e4606eae8ea5 |
comparison
equal
deleted
inserted
replaced
7901:64930ceebac0 | 7902:a7b218447e12 |
---|---|
156 (D4EArtifact) artifactFacet.getArtifact(), | 156 (D4EArtifact) artifactFacet.getArtifact(), |
157 artifactFacet.getData(context), | 157 artifactFacet.getData(context), |
158 artifactFacet.getFacetDescription(), theme, visible); | 158 artifactFacet.getFacetDescription(), theme, visible); |
159 } | 159 } |
160 else if (FacetTypes.IS.MANUALPOINTS(name)) { | 160 else if (FacetTypes.IS.MANUALPOINTS(name)) { |
161 HistoricalDischargeAccess.EvaluationMode mode = | |
162 new HistoricalDischargeAccess((D4EArtifact)getMaster()).getEvaluationMode(); | |
163 int axis = mode == HistoricalDischargeAccess.EvaluationMode.W | |
164 ? YAXIS.Q.idx | |
165 : YAXIS.W.idx; | |
166 | |
161 doPoints(artifactFacet.getData(context), artifactFacet, theme, | 167 doPoints(artifactFacet.getData(context), artifactFacet, theme, |
162 visible, YAXIS.Q.idx); | 168 visible, axis); |
163 } | 169 } |
164 else { | 170 else { |
165 logger.warn("doOut(): unknown facet name: " + name); | 171 logger.warn("doOut(): unknown facet name: " + name); |
166 return; | 172 return; |
167 } | 173 } |