Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/DischargeCurveGenerator.java @ 1848:3918bd7eb4e1
Cosmetics, removed duplicate code.
flys-artifacts/trunk@3192 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 09 Nov 2011 12:55:13 +0000 |
parents | dd084cf3f284 |
children | 5d5dd44d613e |
comparison
equal
deleted
inserted
replaced
1847:8e5b4ea2851c | 1848:3918bd7eb4e1 |
---|---|
124 nativeFacet.getDescription(), | 124 nativeFacet.getDescription(), |
125 theme, | 125 theme, |
126 visible); | 126 visible); |
127 } | 127 } |
128 else if (name.equals(COMPUTED_DISCHARGE_MAINVALUES_Q) | 128 else if (name.equals(COMPUTED_DISCHARGE_MAINVALUES_Q) |
129 || name.equals(MAINVALUES_Q)) | 129 || name.equals(MAINVALUES_Q) |
130 { | 130 || name.equals(COMPUTED_DISCHARGE_MAINVALUES_W) |
131 doMainValueQAnnotations( | |
132 nativeFacet.getData(artifact, context), facet, theme, visible); | |
133 } | |
134 else if (name.equals(COMPUTED_DISCHARGE_MAINVALUES_W) | |
135 || name.equals(MAINVALUES_W)) | 131 || name.equals(MAINVALUES_W)) |
136 { | 132 { |
137 doMainValueWAnnotations( | 133 doMainValueAnnotations( |
138 nativeFacet.getData(artifact, context), facet, theme, visible); | 134 nativeFacet.getData(artifact, context), facet, theme, visible); |
139 } | 135 } |
140 else { | 136 else { |
141 logger.warn("DischargeCurveGenerator.doOut: Unknown facet name: " + name); | 137 logger.warn("DischargeCurveGenerator.doOut: Unknown facet name: " + name); |
142 return; | 138 return; |
182 | 178 |
183 | 179 |
184 /** | 180 /** |
185 * Store W MainValues as annotations for later plotting. | 181 * Store W MainValues as annotations for later plotting. |
186 */ | 182 */ |
187 protected void doMainValueWAnnotations( | 183 protected void doMainValueAnnotations( |
188 Object o, | 184 Object o, |
189 Facet facet, | 185 Facet facet, |
190 Document theme, | 186 Document theme, |
191 boolean visible | 187 boolean visible |
192 ) { | 188 ) { |
195 FLYSAnnotation fa = (FLYSAnnotation) o; | 191 FLYSAnnotation fa = (FLYSAnnotation) o; |
196 fa.setTheme(theme); | 192 fa.setTheme(theme); |
197 fa.setLabel(facet.getDescription()); | 193 fa.setLabel(facet.getDescription()); |
198 addAnnotations(fa, visible); | 194 addAnnotations(fa, visible); |
199 } | 195 } |
200 | |
201 | |
202 /** | |
203 * Store Q MainValues as annotations for later plotting. | |
204 */ | |
205 protected void doMainValueQAnnotations( | |
206 Object o, | |
207 Facet facet, | |
208 Document theme, | |
209 boolean visible | |
210 ) { | |
211 logger.debug("ComputedDischargeCurveGenerator set Q MainValues."); | |
212 | |
213 FLYSAnnotation fa = (FLYSAnnotation) o; | |
214 fa.setTheme(theme); | |
215 fa.setLabel(facet.getDescription()); | |
216 addAnnotations(fa, visible); | |
217 } | |
218 | |
219 | |
220 | |
221 } | 196 } |
222 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 197 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |